diff options
author | 2019-04-05 12:11:31 +0100 | |
---|---|---|
committer | 2019-04-05 12:11:31 +0100 | |
commit | ebda74029355ce3236ca9266acde40fd40329df7 (patch) | |
tree | aba491f902c874328c88b8e7ccb9772b5414c17f /api/migrations/0033_create_defcon_settings.py | |
parent | Set `harakiri = 30`. (diff) |
[#176] Redo project layout
Diffstat (limited to 'api/migrations/0033_create_defcon_settings.py')
-rw-r--r-- | api/migrations/0033_create_defcon_settings.py | 30 |
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) - ] |