Skip to content

Commit

Permalink
fix(api): temporarily removing unique constraint on revocation proof …
Browse files Browse the repository at this point in the history
…value (#656)
  • Loading branch information
lucianHymer authored Aug 8, 2024
1 parent 9dbb9aa commit 64208b4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions api/ceramic_cache/migrations/0024_alter_revocation_proof_value.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
2 changes: 1 addition & 1 deletion api/ceramic_cache/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 64208b4

Please sign in to comment.