-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
4 changed files
with
21 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,8 @@ | ||
-- Deploy nasa-apt:title_uniqueness to pg | ||
-- requires: remove_reviewer_info_in_atbd_version | ||
|
||
BEGIN; | ||
|
||
ALTER TABLE apt.atbds ADD CONSTRAINT unique_title UNIQUE (title); | ||
|
||
COMMIT; |
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,7 @@ | ||
-- Revert nasa-apt:title_uniqueness from pg | ||
|
||
BEGIN; | ||
|
||
ALTER TABLE apt.atbds DROP CONSTRAINT unique_title; | ||
|
||
COMMIT; |
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 |
---|---|---|
|
@@ -30,3 +30,4 @@ add_pdf_uploads_table [tables] 2023-05-22T05:40:55Z navin <navin@nav-machine> # | |
add_pdf_in_atbd [add_pdf_uploads_table] 2023-05-22T06:06:10Z navin <navin@nav-machine> # Add PDF upload support to ATBD | ||
add_reviewer_info_in_atbd_version 2023-08-03T07:07:52Z navin <navin@nav-machine> # Add Reviewer info column ATBD Version | ||
remove_reviewer_info_in_atbd_version 2023-10-11T08:05:21Z navin <navin@nav-machine> # Remove Reviewer info column ATBD Version | ||
title_uniqueness [remove_reviewer_info_in_atbd_version] 2024-07-08T14:21:46Z Marc Farra <[email protected]> # Adds uniqueness constraint to ATBD titles |
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,5 @@ | ||
-- Verify nasa-apt:title_uniqueness on pg | ||
|
||
SELECT conname | ||
FROM pg_constraint | ||
WHERE conname = 'unique_title' AND conrelid = 'apt.atbds'::regclass; |