From 8557635b4d5cbf370360d5674d9c99a7b05d311c Mon Sep 17 00:00:00 2001 From: Her Email Date: Thu, 23 Nov 2023 01:08:33 -0500 Subject: [PATCH] fix mark time edge case --- ...20_shelflogentry_unique_shelf_log_entry.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 journal/migrations/0020_shelflogentry_unique_shelf_log_entry.py diff --git a/journal/migrations/0020_shelflogentry_unique_shelf_log_entry.py b/journal/migrations/0020_shelflogentry_unique_shelf_log_entry.py new file mode 100644 index 00000000..ecd7ab99 --- /dev/null +++ b/journal/migrations/0020_shelflogentry_unique_shelf_log_entry.py @@ -0,0 +1,20 @@ +# Generated by Django 4.2.7 on 2023-11-23 03:23 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("journal", "0019_alter_collection_edited_time_and_more"), + ] + + operations = [ + migrations.AddConstraint( + model_name="shelflogentry", + constraint=models.UniqueConstraint( + fields=("owner", "item", "timestamp", "shelf_type"), + name="unique_shelf_log_entry", + ), + ), + ]