Merge pull request #429 from status-im/tx-hash-uniqueness

WIP migration: add unique constraint on transaction_hash column
This commit is contained in:
Vitaliy Vlasov 2018-04-19 19:19:05 +03:00 committed by GitHub
commit ece5333ae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);