From 8b239e18120db137c784388744e09562393c6c07 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 22 Jun 2020 02:14:02 +0200 Subject: [PATCH] rework migration, remove unique from event.uuid for now --- ...ntsession_constraint_and_missing_migrations.py} | 14 +------------- src/program/models.py | 2 +- 2 files changed, 2 insertions(+), 14 deletions(-) rename src/program/migrations/{0095_event_duration_not_null_eventuuid_unique_proposal_duration_desc_and_new_eventsession_constraint.py => 0095_add_eventsession_constraint_and_missing_migrations.py} (73%) diff --git a/src/program/migrations/0095_event_duration_not_null_eventuuid_unique_proposal_duration_desc_and_new_eventsession_constraint.py b/src/program/migrations/0095_add_eventsession_constraint_and_missing_migrations.py similarity index 73% rename from src/program/migrations/0095_event_duration_not_null_eventuuid_unique_proposal_duration_desc_and_new_eventsession_constraint.py rename to src/program/migrations/0095_add_eventsession_constraint_and_missing_migrations.py index 7c76132e..36112bae 100644 --- a/src/program/migrations/0095_event_duration_not_null_eventuuid_unique_proposal_duration_desc_and_new_eventsession_constraint.py +++ b/src/program/migrations/0095_add_eventsession_constraint_and_missing_migrations.py @@ -1,6 +1,4 @@ -# Generated by Django 3.0.3 on 2020-06-21 23:56 - -import uuid +# Generated by Django 3.0.3 on 2020-06-22 00:06 import django.contrib.postgres.constraints from django.db import migrations, models @@ -22,16 +20,6 @@ class Migration(migrations.Migration): help_text="The duration of this event in minutes. Leave blank to use the default from the event_type.", ), ), - migrations.AlterField( - model_name="event", - name="uuid", - field=models.UUIDField( - default=uuid.uuid4, - editable=False, - help_text="This field is not the PK of the model. It is used to create EventSlot UUID for FRAB and iCal and other calendaring purposes.", - unique=True, - ), - ), migrations.AlterField( model_name="eventproposal", name="duration", diff --git a/src/program/models.py b/src/program/models.py index 49984abd..30b64fa3 100644 --- a/src/program/models.py +++ b/src/program/models.py @@ -1202,7 +1202,7 @@ class Event(CampRelatedModel): uuid = models.UUIDField( default=uuid.uuid4, - unique=True, + # unique=True, editable=False, help_text="This field is not the PK of the model. It is used to create EventSlot UUID for FRAB and iCal and other calendaring purposes.", )