-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change project maturity field type to text (#551)
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
- Loading branch information
Showing
4 changed files
with
19 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
alter table project | ||
alter column maturity type text using maturity::text, | ||
add constraint maturity_not_empty_check check (maturity <> '');; | ||
drop type if exists maturity; | ||
|
||
---- create above / drop below ---- | ||
|
||
create type maturity as enum ('graduated', 'incubating', 'sandbox'); | ||
alter table project | ||
drop constraint maturity_not_empty_check, | ||
alter column maturity type maturity using maturity::maturity; |