From 98a6f57982a1ead0842b3abeec32e6cabd130662 Mon Sep 17 00:00:00 2001 From: bearthatcares <149488155+bearthatcares@users.noreply.github.com> Date: Sun, 28 Apr 2024 18:14:01 -0400 Subject: [PATCH] Add migration for eve fleet changes (#311) --- ...fleetnotificationchannel_group_and_more.py | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 backend/fleets/migrations/0002_evefleetnotificationchannel_group_and_more.py diff --git a/backend/fleets/migrations/0002_evefleetnotificationchannel_group_and_more.py b/backend/fleets/migrations/0002_evefleetnotificationchannel_group_and_more.py new file mode 100644 index 00000000..37d9e0eb --- /dev/null +++ b/backend/fleets/migrations/0002_evefleetnotificationchannel_group_and_more.py @@ -0,0 +1,39 @@ +# Generated by Django 5.0.4 on 2024-04-28 22:13 + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("auth", "0012_alter_user_first_name_max_length"), + ("fleets", "0001_initial"), + ] + + operations = [ + migrations.AddField( + model_name="evefleetnotificationchannel", + name="group", + field=models.ForeignKey( + default=1, + on_delete=django.db.models.deletion.CASCADE, + to="auth.group", + ), + preserve_default=False, + ), + migrations.RemoveField( + model_name="evefleet", + name="audience", + ), + migrations.AddField( + model_name="evefleet", + name="audience", + field=models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.SET_NULL, + to="auth.group", + ), + ), + ]