mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 18:52:23 +01:00
Add missing migration
This commit is contained in:
@ -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',
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user