aboutsummaryrefslogtreecommitdiffstats
path: root/api/migrations/0033_create_defcon_settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/migrations/0033_create_defcon_settings.py')
-rw-r--r--api/migrations/0033_create_defcon_settings.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/api/migrations/0033_create_defcon_settings.py b/api/migrations/0033_create_defcon_settings.py
deleted file mode 100644
index 830f3fb0..00000000
--- a/api/migrations/0033_create_defcon_settings.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# Generated by Django 2.1.5 on 2019-02-18 19:30
-
-from django.db import migrations
-
-
-def up(apps, schema_editor):
- BotSetting = apps.get_model('api', 'BotSetting')
- setting = BotSetting(
- name='defcon',
- data={
- 'enabled': False,
- 'days': 0
- }
- ).save()
-
-
-def down(apps, schema_editor): # pragma: no cover - not necessary to test
- BotSetting = apps.get_model('api', 'BotSetting')
- BotSetting.get(name='defcon').delete()
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0032_botsetting'),
- ]
-
- operations = [
- migrations.RunPython(up, down)
- ]