From 487b95204b5fcc70d3fbe41fde9bee4f3de2a69f Mon Sep 17 00:00:00 2001 From: Sal Tijerina Date: Mon, 25 Mar 2024 15:54:43 -0500 Subject: [PATCH] add untracked migrations (#939) Co-authored-by: Chandra Y --- .../0002_alter_matlablicense_user.py | 21 +++++++++++ ...abstractprojectmetadata_co_pis_and_more.py | 36 +++++++++++++++++++ .../0004_alter_externalcall_time.py | 19 ++++++++++ 3 files changed, 76 insertions(+) create mode 100644 server/portal/apps/licenses/migrations/0002_alter_matlablicense_user.py create mode 100644 server/portal/apps/projects/migrations/0003_alter_abstractprojectmetadata_co_pis_and_more.py create mode 100644 server/portal/apps/webhooks/migrations/0004_alter_externalcall_time.py diff --git a/server/portal/apps/licenses/migrations/0002_alter_matlablicense_user.py b/server/portal/apps/licenses/migrations/0002_alter_matlablicense_user.py new file mode 100644 index 000000000..3a8a2431e --- /dev/null +++ b/server/portal/apps/licenses/migrations/0002_alter_matlablicense_user.py @@ -0,0 +1,21 @@ +# Generated by Django 4.2.10 on 2024-03-19 16:38 + +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), + ('portal_licenses', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='matlablicense', + name='user', + field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s', to=settings.AUTH_USER_MODEL), + ), + ] diff --git a/server/portal/apps/projects/migrations/0003_alter_abstractprojectmetadata_co_pis_and_more.py b/server/portal/apps/projects/migrations/0003_alter_abstractprojectmetadata_co_pis_and_more.py new file mode 100644 index 000000000..af9d42c60 --- /dev/null +++ b/server/portal/apps/projects/migrations/0003_alter_abstractprojectmetadata_co_pis_and_more.py @@ -0,0 +1,36 @@ +# Generated by Django 4.2.10 on 2024-03-19 16:38 + +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), + ('projects', '0002_auto_20210312_1743'), + ] + + operations = [ + migrations.AlterField( + model_name='abstractprojectmetadata', + name='co_pis', + field=models.ManyToManyField(blank=True, related_name='rel_co_pi_%(class)s', related_query_name='co_pi_%(class)s', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='abstractprojectmetadata', + name='owner', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='rel_owner_%(class)s', related_query_name='owner_%(class)s', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='abstractprojectmetadata', + name='pi', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='rel_pi_%(class)s', related_query_name='pi_%(class)s', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='abstractprojectmetadata', + name='team_members', + field=models.ManyToManyField(blank=True, related_name='rel_member_%(class)s', related_query_name='member_%(class)s', to=settings.AUTH_USER_MODEL), + ), + ] diff --git a/server/portal/apps/webhooks/migrations/0004_alter_externalcall_time.py b/server/portal/apps/webhooks/migrations/0004_alter_externalcall_time.py new file mode 100644 index 000000000..6bc28eaba --- /dev/null +++ b/server/portal/apps/webhooks/migrations/0004_alter_externalcall_time.py @@ -0,0 +1,19 @@ +# Generated by Django 4.2.10 on 2024-03-19 16:38 + +from django.db import migrations, models +import django.utils.timezone + + +class Migration(migrations.Migration): + + dependencies = [ + ('webhooks', '0001_squashed_0003_alter_externalcall_callback_data'), + ] + + operations = [ + migrations.AlterField( + model_name='externalcall', + name='time', + field=models.DateTimeField(default=django.utils.timezone.now), + ), + ]