Skip to content

Commit 1d49952

Browse files
committed
feat: add proper migrations
1 parent 2d3e788 commit 1d49952

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
-- +goose Up
2-
ALTER TABLE users ADD UNIQUE (github_profile);
2+
ALTER TABLE users ADD CONSTRAINT unique_github_profile UNIQUE (github_profile);
33

4-
ALTER TABLE teams ADD UNIQUE (name);
4+
ALTER TABLE teams ADD CONSTRAINT unique_team_name UNIQUE (name);
55

66
-- +goose Down
7+
ALTER TABLE users DROP CONSTRAINT unique_github_profile;
8+
9+
ALTER TABLE teams DROP CONSTRAINT unique_team_name;

0 commit comments

Comments
 (0)