Skip to content

Commit

Permalink
migrations: Disarm meta-migration 0011
Browse files Browse the repository at this point in the history
  • Loading branch information
moseb committed May 3, 2019
1 parent 16399a2 commit 5fdf91a
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions django_celery_beat/migrations/0011_fix_migration_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,6 @@ class Migration(migrations.Migration):
]

operations = [
# delete the squashed migration history of migrations replaced by
# 0005_add_solarschedule_events_choices_squashed_0009_merge_20181012_1416
# the squashed file was convertd to a normal migration and the py files
# were deleted, so we must also delete them from the history.
# this is necessary because the squashed file was somehow screwing up
# this history for version 1.3.0 installs that were upgraded.
migrations.RunSQL([(
"""
delete from django_migrations where app='django_celery_beat' and (
name = '0005_add_solarschedule_events_choices'
or name = '0006_auto_20180210_1226'
or name = '0006_auto_20180322_0932'
or name = '0007_auto_20180521_0826'
or name = '0008_auto_20180914_1922'
)
""", None)],
reverse_sql=migrations.RunSQL.noop
),
# operations removed, migration kept to keep external
# reverse dependencies intact
]

0 comments on commit 5fdf91a

Please sign in to comment.