-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from WomenPlusPlus/fix_migrations
Fix migration errors
- Loading branch information
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
ALTER TABLE | ||
kpi_definition | ||
DROP | ||
CONSTRAINT IF EXISTS fk_auth_user; | ||
|
||
ALTER TABLE | ||
kpi_definition | ||
ADD | ||
COLUMN IF NOT EXISTS created_by uuid; | ||
|
||
|
||
ALTER TABLE | ||
kpi_definition | ||
ADD | ||
CONSTRAINT IF NOT EXISTS fk_auth_user FOREIGN KEY (created_by) REFERENCES auth.users (id); | ||
CONSTRAINT fk_auth_user FOREIGN KEY (created_by) REFERENCES auth.users (id); |