Add missing migration

This commit is contained in:
Daan Sprenkels
2019-03-20 11:31:33 +01:00
parent bc3488557c
commit 568f7c6a50

View File

@ -0,0 +1,26 @@
# Generated by Django 2.1 on 2019-03-20 09:41
# `remove_executed_queue_commands` added afterwards by dsprenkels
from django.db import migrations
def remove_executed_queue_commands(apps, schema_editor):
QueueCommand = apps.get_model("queues", "QueueCommand")
db_alias = schema_editor.connection.alias
QueueCommand.objects.using(db_alias).filter(executed=True).delete()
class Migration(migrations.Migration):
dependencies = [
('queues', '0007_song_state_choices'),
]
operations = [
migrations.RunPython(
code=remove_executed_queue_commands,
reverse_code=migrations.RunPython.noop,
),
migrations.RemoveField(
model_name='queuecommand',
name='executed',
),
]