mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Make detect_soft_applied exit correctly on non-create migrations
This commit is contained in:
		| @@ -144,6 +144,8 @@ class MigrationExecutor(object): | |||||||
|                 if model._meta.db_table not in self.connection.introspection.get_table_list(self.connection.cursor()): |                 if model._meta.db_table not in self.connection.introspection.get_table_list(self.connection.cursor()): | ||||||
|                     return False |                     return False | ||||||
|                 found_create_migration = True |                 found_create_migration = True | ||||||
|  |             else: | ||||||
|  |                 return False | ||||||
|         # If we get this far and we found at least one CreateModel migration, |         # If we get this far and we found at least one CreateModel migration, | ||||||
|         # the migration is considered implicitly applied. |         # the migration is considered implicitly applied. | ||||||
|         return found_create_migration |         return found_create_migration | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user