IgnoreMigration operation fix (postgres compatibility fix)

This commit is contained in:
Serj Zavadsky committed 2019-01-29 17:08:42 +01:00
1 parent 0ce615ff19
commit 0c66b1cdfa
1 file changed
+2 -2
+2 -2
View File
@@ -14,7 +14,7 @@
from django.db.migrations.operations.base import Operation
IGNORE_MIGRATION_SQL = "select 1;"
IGNORE_MIGRATION_SQL = "select 1; -- dml ignores this migration"
class IgnoreMigration(Operation):
@@ -30,7 +30,7 @@ class IgnoreMigration(Operation):
schema_editor.execute(IGNORE_MIGRATION_SQL)
def database_backwards(self, app_label, schema_editor, from_state, to_state):
schema_editor.execute(IGNORE_MIGRATION_SQL)
schema_editor.execute(IGNORE_MIGRATION_SQL + "(reversed)")
def describe(self):
return "The Django migration linter will ignore this migration"