From 29aaf5250fd5cf46450eab18a295eb00f975c69b Mon Sep 17 00:00:00 2001 From: monsieurswag Date: Fri, 22 Nov 2024 03:13:07 +0100 Subject: [PATCH] Attempt to fix migration issues Remove useless prints --- ...0010_user_preferences.py => 0009_user_preferences.py} | 9 +++++---- ...ts.py => 0010_create_allauth_emailaddress_objects.py} | 4 +--- 2 files changed, 6 insertions(+), 7 deletions(-) rename backend/iam/migrations/{0010_user_preferences.py => 0009_user_preferences.py} (56%) rename backend/iam/migrations/{0009_create_allauth_emailaddress_objects.py => 0010_create_allauth_emailaddress_objects.py} (93%) 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 eed321d6b..0a668764e 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 93% rename from backend/iam/migrations/0009_create_allauth_emailaddress_objects.py rename to backend/iam/migrations/0010_create_allauth_emailaddress_objects.py index e2d220c2b..d21f71aa6 100644 --- a/backend/iam/migrations/0009_create_allauth_emailaddress_objects.py +++ b/backend/iam/migrations/0010_create_allauth_emailaddress_objects.py @@ -2,7 +2,6 @@ from django.db import migrations - def create_emailaddress_objects(apps, schema_editor): try: from allauth.account.models import EmailAddress @@ -18,10 +17,9 @@ def create_emailaddress_objects(apps, schema_editor): finally: pass - class Migration(migrations.Migration): dependencies = [ - ("iam", "0008_user_is_third_party"), + ("iam", "0009_user_preferences"), ] operations = [