diff --git a/kobo/apps/organizations/migrations/0007_update_organization_name.py b/kobo/apps/organizations/migrations/0007_update_organization_name_website_and_type.py similarity index 100% rename from kobo/apps/organizations/migrations/0007_update_organization_name.py rename to kobo/apps/organizations/migrations/0007_update_organization_name_website_and_type.py diff --git a/kobo/apps/organizations/migrations/0008_alter_mmo_override_verbose_name.py b/kobo/apps/organizations/migrations/0008_alter_mmo_override_verbose_name.py new file mode 100644 index 0000000000..614fdb773d --- /dev/null +++ b/kobo/apps/organizations/migrations/0008_alter_mmo_override_verbose_name.py @@ -0,0 +1,22 @@ +# flake8: noqa: E501 +# Generated by Django 4.2.15 on 2024-12-10 18:57 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('organizations', '0007_update_organization_name_website_and_type'), + ] + + operations = [ + migrations.AlterField( + model_name='organization', + name='mmo_override', + field=models.BooleanField( + default=False, + verbose_name='Make organization multi-member (necessary for adding users)', + ), + ), + ] diff --git a/kobo/apps/organizations/migrations/0009_update_db_state_with_auth_user.py b/kobo/apps/organizations/migrations/0009_update_db_state_with_auth_user.py new file mode 100644 index 0000000000..45dba56223 --- /dev/null +++ b/kobo/apps/organizations/migrations/0009_update_db_state_with_auth_user.py @@ -0,0 +1,54 @@ +# Generated by Django 4.2.15 on 2024-12-10 19:00 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('organizations', '0008_alter_mmo_override_verbose_name'), + ] + + operations = [ + migrations.AlterField( + model_name='organization', + name='users', + field=models.ManyToManyField( + related_name='%(app_label)s_%(class)s', + through='organizations.OrganizationUser', + to=settings.AUTH_USER_MODEL, + ), + ), + migrations.AlterField( + model_name='organizationinvitation', + name='invited_by', + field=models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + related_name='%(app_label)s_%(class)s_sent_invitations', + to=settings.AUTH_USER_MODEL, + ), + ), + migrations.AlterField( + model_name='organizationinvitation', + name='invitee', + field=models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.CASCADE, + related_name='%(app_label)s_%(class)s_invitations', + to=settings.AUTH_USER_MODEL, + ), + ), + migrations.AlterField( + model_name='organizationuser', + name='user', + field=models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + related_name='%(app_label)s_%(class)s', + to=settings.AUTH_USER_MODEL, + ), + ), + ]