From 64208b4d1e8cccb2f9bde255528b497cc6a400d5 Mon Sep 17 00:00:00 2001 From: Lucian Date: Thu, 8 Aug 2024 15:01:24 -0600 Subject: [PATCH] fix(api): temporarily removing unique constraint on revocation proof value (#656) --- .../0024_alter_revocation_proof_value.py | 17 +++++++++++++++++ api/ceramic_cache/models.py | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 api/ceramic_cache/migrations/0024_alter_revocation_proof_value.py diff --git a/api/ceramic_cache/migrations/0024_alter_revocation_proof_value.py b/api/ceramic_cache/migrations/0024_alter_revocation_proof_value.py new file mode 100644 index 000000000..23b4c8170 --- /dev/null +++ b/api/ceramic_cache/migrations/0024_alter_revocation_proof_value.py @@ -0,0 +1,17 @@ +# Generated by Django 4.2.6 on 2024-08-08 20:59 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("ceramic_cache", "0023_alter_ceramiccache_proof_value"), + ] + + operations = [ + migrations.AlterField( + model_name="revocation", + name="proof_value", + field=models.CharField(db_index=True, max_length=256), + ), + ] diff --git a/api/ceramic_cache/models.py b/api/ceramic_cache/models.py index 1d0aba45b..47f5aa513 100644 --- a/api/ceramic_cache/models.py +++ b/api/ceramic_cache/models.py @@ -115,7 +115,7 @@ class Meta: class Revocation(models.Model): proof_value = models.CharField( - null=False, blank=False, max_length=256, db_index=True, unique=True + null=False, blank=False, max_length=256, db_index=True ) # This is to provide efficient filtering (allows use of JOIN)