diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2014-07-29 09:19:25 -0700 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2014-07-29 09:19:48 -0700 |
| commit | 053af1422a051cf22600d2a0cbecd8c4fdb0b068 (patch) | |
| tree | 8b38f17882a39f98c0389c4ad17890f0471aab0a | |
| parent | dcedc453a2e6446d052fc7a3d24fe190a607e958 (diff) | |
[1.7.x] Make detect_soft_applied exit correctly on non-create migrations
| -rw-r--r-- | django/db/migrations/executor.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/migrations/executor.py b/django/db/migrations/executor.py index 10cbfc80f0..ad3c8c30c9 100644 --- a/django/db/migrations/executor.py +++ b/django/db/migrations/executor.py @@ -144,6 +144,8 @@ class MigrationExecutor(object): if model._meta.db_table not in self.connection.introspection.get_table_list(self.connection.cursor()): return False found_create_migration = True + else: + return False # If we get this far and we found at least one CreateModel migration, # the migration is considered implicitly applied. return found_create_migration |
