From 839d5a2065c88399251f27fdc19874cdc42b5cbc Mon Sep 17 00:00:00 2001 From: Aaron Su Date: Thu, 19 Dec 2024 16:56:53 -0500 Subject: [PATCH] fixup! Add migrations per susggestion by migrate step --- .../0050_update_pfb_analysis_and_user.py | 56 +++++++++++++++++++ .../0005_update_pfb_analysis_and_user.py | 35 ++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 src/django/pfb_analysis/migrations/0050_update_pfb_analysis_and_user.py create mode 100644 src/django/users/migrations/0005_update_pfb_analysis_and_user.py diff --git a/src/django/pfb_analysis/migrations/0050_update_pfb_analysis_and_user.py b/src/django/pfb_analysis/migrations/0050_update_pfb_analysis_and_user.py new file mode 100644 index 00000000..ff0fcfb0 --- /dev/null +++ b/src/django/pfb_analysis/migrations/0050_update_pfb_analysis_and_user.py @@ -0,0 +1,56 @@ +# Generated by Django 4.2.17 on 2024-12-19 21:54 + +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), + ('pfb_analysis', '0049_neighborhood_geog'), + ] + + operations = [ + migrations.AlterField( + model_name='analysisbatch', + name='created_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='%(app_label)s_%(class)s_related+', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='analysisbatch', + name='modified_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='%(app_label)s_%(class)s_related+', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='analysisjob', + name='created_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='%(app_label)s_%(class)s_related+', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='analysisjob', + name='modified_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='%(app_label)s_%(class)s_related+', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='analysislocaluploadtask', + name='created_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='%(app_label)s_%(class)s_related+', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='analysislocaluploadtask', + name='modified_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='%(app_label)s_%(class)s_related+', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='neighborhood', + name='created_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='%(app_label)s_%(class)s_related+', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='neighborhood', + name='modified_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='%(app_label)s_%(class)s_related+', to=settings.AUTH_USER_MODEL), + ), + ] diff --git a/src/django/users/migrations/0005_update_pfb_analysis_and_user.py b/src/django/users/migrations/0005_update_pfb_analysis_and_user.py new file mode 100644 index 00000000..9aed0224 --- /dev/null +++ b/src/django/users/migrations/0005_update_pfb_analysis_and_user.py @@ -0,0 +1,35 @@ +# Generated by Django 4.2.17 on 2024-12-19 21:54 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('users', '0004_auto_20170509_1559'), + ] + + operations = [ + migrations.AlterField( + model_name='organization', + name='created_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='%(app_label)s_%(class)s_related+', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='organization', + name='modified_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='%(app_label)s_%(class)s_related+', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='pfbuser', + name='created_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='%(app_label)s_%(class)s_related+', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='pfbuser', + name='modified_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='%(app_label)s_%(class)s_related+', to=settings.AUTH_USER_MODEL), + ), + ]