diff --git a/backend/iam/migrations/0010_user_preferences.py b/backend/iam/migrations/0009_user_preferences.py similarity index 56% rename from backend/iam/migrations/0010_user_preferences.py rename to backend/iam/migrations/0009_user_preferences.py index eed321d6b0..0a668764ef 100644 --- a/backend/iam/migrations/0010_user_preferences.py +++ b/backend/iam/migrations/0009_user_preferences.py @@ -1,17 +1,18 @@ -# Generated by Django 5.1.1 on 2024-11-22 01:05 +# Generated by Django 5.1.1 on 2024-11-22 01:25 from django.db import migrations, models class Migration(migrations.Migration): + dependencies = [ - ("iam", "0009_create_allauth_emailaddress_objects"), + ('iam', '0008_user_is_third_party'), ] operations = [ migrations.AddField( - model_name="user", - name="preferences", + model_name='user', + name='preferences', field=models.JSONField(default=dict), ), ] diff --git a/backend/iam/migrations/0009_create_allauth_emailaddress_objects.py b/backend/iam/migrations/0010_create_allauth_emailaddress_objects.py similarity index 77% rename from backend/iam/migrations/0009_create_allauth_emailaddress_objects.py rename to backend/iam/migrations/0010_create_allauth_emailaddress_objects.py index e2d220c2b7..b5511c0c55 100644 --- a/backend/iam/migrations/0009_create_allauth_emailaddress_objects.py +++ b/backend/iam/migrations/0010_create_allauth_emailaddress_objects.py @@ -2,11 +2,13 @@ from django.db import migrations - +print("DDDDDDDDDDDDDDDD") def create_emailaddress_objects(apps, schema_editor): try: + print("AAAAAAAAAAAAAAAAAAAAAAAAAA") from allauth.account.models import EmailAddress from iam.models import User + print("BBBBBBBBBBBBBBBBBB") for user in User.objects.all(): EmailAddress.objects.create( @@ -18,10 +20,10 @@ def create_emailaddress_objects(apps, schema_editor): finally: pass - +print("EEEEEEEEEEEEEEEEEEEEEEEEE") class Migration(migrations.Migration): dependencies = [ - ("iam", "0008_user_is_third_party"), + ("iam", "0009_user_preferences"), ] operations = [