diff --git a/schemas/database/017_comittment_uniqueness_for_identities.down.sql b/schemas/database/017_comittment_uniqueness_for_identities.down.sql new file mode 100644 index 00000000..491820e8 --- /dev/null +++ b/schemas/database/017_comittment_uniqueness_for_identities.down.sql @@ -0,0 +1 @@ +DROP INDEX identities_unique_commitment; \ No newline at end of file diff --git a/schemas/database/017_comittment_uniqueness_for_identities.up.sql b/schemas/database/017_comittment_uniqueness_for_identities.up.sql new file mode 100644 index 00000000..19a4f95e --- /dev/null +++ b/schemas/database/017_comittment_uniqueness_for_identities.up.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX identities_unique_commitment on identities(commitment) WHERE commitment != E'\\x0000000000000000000000000000000000000000000000000000000000000000'; \ No newline at end of file