Use a custom migration operation instead of a RunSQL statement

This commit is contained in:
David-Wobrock authored and David Wobrock committed 2018-12-23 17:46:57 +01:00
1 parent 6fe51d2e08
commit fe6433a065
5 files changed
+47 -12

No files matched your search

@@ -4,8 +4,7 @@ from __future__ import unicode_literals
from django.db import migrations
from django_migration_linter import IGNORE_MIGRATION
import django_migration_linter as linter
class Migration(migrations.Migration):
@@ -14,7 +13,7 @@ class Migration(migrations.Migration):
]
operations = [
migrations.RunSQL(IGNORE_MIGRATION),
linter.IgnoreMigration(),
migrations.RenameModel(
old_name='A',
new_name='B',