migration: add unique constraint on transaction_hash column

This commit is contained in:
Martin Klepsch 2018-04-19 15:53:34 +02:00
parent 6e2c04a849
commit 9868624bd7
No known key found for this signature in database
GPG Key ID: 1A35E702AD48A9F6
2 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1 @@
ALTER TABLE issues DROP CONSTRAINT transaction_hash_uniq;

View File

@ -0,0 +1 @@
ALTER TABLE issues ADD CONSTRAINT transaction_hash_uniq UNIQUE (transaction_hash);