Skip to content

Commit

Permalink
fix(migrations): add unique index on user(provider,provider_id)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-div committed Feb 23, 2018
1 parent 7914a4a commit 9e36d01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions migrations/005-unique-provider_id.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- Up
CREATE UNIQUE INDEX idx_user_provider_id ON user(provider, provider_id);

-- Down
DROP INDEX idx_user_provider_id;

0 comments on commit 9e36d01

Please sign in to comment.