From 30a3519e2243bbf3a8ab28ff676fb7ead3fadf54 Mon Sep 17 00:00:00 2001 From: Trey <73353716+TreyWW@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:11:11 +0100 Subject: [PATCH] updated + squashed migrations Signed-off-by: Trey <73353716+TreyWW@users.noreply.github.com> --- ...ereminder_boto_schedule_status_and_more.py | 17 ++++++---- ...apiauthtoken_administrator_service_type.py | 18 ----------- ...ingset_invoicerecurringprofile_and_more.py | 32 ------------------- 3 files changed, 11 insertions(+), 56 deletions(-) delete mode 100644 backend/migrations/0047_apiauthtoken_administrator_service_type.py delete mode 100644 backend/migrations/0048_rename_invoicerecurringset_invoicerecurringprofile_and_more.py diff --git a/backend/migrations/0046_rename_status_invoicereminder_boto_schedule_status_and_more.py b/backend/migrations/0046_rename_status_invoicereminder_boto_schedule_status_and_more.py index 34d06b78..332f0429 100644 --- a/backend/migrations/0046_rename_status_invoicereminder_boto_schedule_status_and_more.py +++ b/backend/migrations/0046_rename_status_invoicereminder_boto_schedule_status_and_more.py @@ -1,4 +1,4 @@ -# Generated by Django 5.0.7 on 2024-08-07 21:40 +# Generated by Django 5.0.7 on 2024-08-22 15:09 import backend.models import django.core.validators @@ -23,6 +23,11 @@ class Migration(migrations.Migration): model_name="invoicereminder", name="stored_schedule_arn", ), + migrations.AddField( + model_name="apiauthtoken", + name="administrator_service_type", + field=models.CharField(blank=True, max_length=64, null=True, verbose_name="Administrator Service Type"), + ), migrations.AddField( model_name="invoicereminder", name="boto_last_updated", @@ -61,7 +66,7 @@ class Migration(migrations.Migration): field=models.ImageField(blank=True, null=True, storage=backend.models._public_storage, upload_to="profile_pictures/"), ), migrations.CreateModel( - name="InvoiceRecurringSet", + name="InvoiceRecurringProfile", fields=[ ("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), ("created_at", models.DateTimeField(auto_now_add=True)), @@ -166,27 +171,27 @@ class Migration(migrations.Migration): ), migrations.AddField( model_name="invoice", - name="invoice_recurring_set", + name="invoice_recurring_profile", field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="generated_invoices", - to="backend.invoicerecurringset", + to="backend.invoicerecurringprofile", ), ), migrations.DeleteModel( name="InvoiceOnetimeSchedule", ), migrations.AddConstraint( - model_name="invoicerecurringset", + model_name="invoicerecurringprofile", constraint=models.CheckConstraint( check=models.Q( models.Q(("organization__isnull", False), ("user__isnull", True)), models.Q(("organization__isnull", True), ("user__isnull", False)), _connector="OR", ), - name="backend_invoicerecurringset_check_user_or_organization", + name="backend_invoicerecurringprofile_check_user_or_organization", ), ), ] diff --git a/backend/migrations/0047_apiauthtoken_administrator_service_type.py b/backend/migrations/0047_apiauthtoken_administrator_service_type.py deleted file mode 100644 index f15817cf..00000000 --- a/backend/migrations/0047_apiauthtoken_administrator_service_type.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 5.0.7 on 2024-08-09 15:44 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ("backend", "0046_rename_status_invoicereminder_boto_schedule_status_and_more"), - ] - - operations = [ - migrations.AddField( - model_name="apiauthtoken", - name="administrator_service_type", - field=models.CharField(blank=True, max_length=64, null=True, verbose_name="Administrator Service Type"), - ), - ] diff --git a/backend/migrations/0048_rename_invoicerecurringset_invoicerecurringprofile_and_more.py b/backend/migrations/0048_rename_invoicerecurringset_invoicerecurringprofile_and_more.py deleted file mode 100644 index ed496ab8..00000000 --- a/backend/migrations/0048_rename_invoicerecurringset_invoicerecurringprofile_and_more.py +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by Django 5.0.7 on 2024-08-09 18:05 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ("backend", "0047_apiauthtoken_administrator_service_type"), - ] - - operations = [ - migrations.RenameModel( - old_name="InvoiceRecurringSet", - new_name="InvoiceRecurringProfile", - ), - migrations.RemoveConstraint( - model_name="invoicerecurringprofile", - name="backend_invoicerecurringset_check_user_or_organization", - ), - migrations.AddConstraint( - model_name="invoicerecurringprofile", - constraint=models.CheckConstraint( - check=models.Q( - models.Q(("organization__isnull", False), ("user__isnull", True)), - models.Q(("organization__isnull", True), ("user__isnull", False)), - _connector="OR", - ), - name="backend_invoicerecurringprofile_check_user_or_organization", - ), - ), - ]