-
Notifications
You must be signed in to change notification settings - Fork 5
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
16 changed files
with
43 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
DROP TRIGGER app_configs_updated_at on app_configs; | ||
|
||
DROP TABLE app_configs; |
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,18 @@ | ||
|
||
CREATE TABLE app_configs ( | ||
id serial primary key, | ||
account_id text, | ||
created_at timestamptz DEFAULT current_timestamp, | ||
updated_at timestamptz DEFAULT NULL, | ||
name text DEFAULT NULL, | ||
description text DEFAULT NULL, | ||
config_yaml text DEFAULT NULL, | ||
application_id int REFERENCES applications(id) ON DELETE CASCADE, | ||
lifecycle_id int REFERENCES lifecycles(id) ON DELETE CASCADE | ||
); | ||
|
||
CREATE TRIGGER app_configs_updated_at | ||
BEFORE UPDATE OR INSERT ON app_configs | ||
FOR EACH ROW | ||
EXECUTE PROCEDURE set_updated_at(); | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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