mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-10 11:32:22 +01:00
27 lines
776 B
Python
27 lines
776 B
Python
# 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',
|
|
),
|
|
]
|