Skip to content

Commit 095f26a

Browse files
authored
Merge pull request #77 from CodeChefVIT/chore
Constraints
2 parents 1d49952 + b24ec39 commit 095f26a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

database/schema/010_add_unique_constraints.sql

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

4+
ALTER TABLE users
5+
ALTER COLUMN github_profile
6+
DROP NOT NULL;
7+
48
ALTER TABLE teams ADD CONSTRAINT unique_team_name UNIQUE (name);
59

610
-- +goose Down

0 commit comments

Comments
 (0)