Rename migration to indicate slowness - may need to drop migration table and --fake run again.

This commit is contained in:
Griatch 2017-09-07 21:27:13 +02:00
parent 9837835e9e
commit f6b4155aed
5 changed files with 5 additions and 13 deletions

View file

@ -8,10 +8,9 @@ from django.db import migrations
def forwards(apps, schema_editor):
try:
apps.get_model('accounts', 'AccountDB')
AccountDB = apps.get_model('accounts', 'AccountDB')
except LookupError:
return
AccountDB = apps.get_model('accounts', 'AccountDB')
Msg = apps.get_model('comms', 'Msg')
for msg in Msg.objects.all():

View file

@ -18,7 +18,7 @@ def _table_exists(db_cursor, tablename):
class Migration(migrations.Migration):
dependencies = [
('comms', '0014_auto_20170705_1736'),
('comms', '0014_convert_msgs_may_be_slow'),
]
db_cursor = connection.cursor()