-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0c87eb
commit 5f6b635
Showing
1 changed file
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# add documentation url placeholder where necessary | ||
|
||
UPDATE zk_data.application | ||
SET a_scm_url = 'UNKNOWN' | ||
WHERE a_scm_url IS NULL OR a_scm_url = ''; | ||
|
||
UPDATE zk_data.application | ||
SET a_documentation_url = 'UNKNOWN' | ||
WHERE a_documentation_url IS NULL OR a_scm_url = ''; | ||
|
||
UPDATE zk_data.application | ||
SET a_specification_url = 'UNKNOWN' | ||
WHERE a_specification_url IS NULL OR a_scm_url = ''; | ||
|
||
# make columns not null | ||
|
||
ALTER TABLE zk_data.application | ||
ALTER COLUMN a_scm_url SET NOT NULL, | ||
ALTER COLUMN a_documentation_url SET NOT NULL, | ||
ALTER COLUMN a_specification_url SET NOT NULL; |