generated from bcgov/quickstart-openshift
-
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.
feat: update DB schema name and add DB scripts (#11)
- Loading branch information
1 parent
2b8aa06
commit 4f63de5
Showing
9 changed files
with
7,554 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
CREATE SCHEMA IF NOT EXISTS USERS; | ||
CREATE SCHEMA IF NOT EXISTS codes; | ||
|
||
CREATE SEQUENCE IF NOT EXISTS USERS."USER_SEQ" | ||
CREATE SEQUENCE IF NOT EXISTS codes."USER_SEQ" | ||
START WITH 1 | ||
INCREMENT BY 1 | ||
NO MINVALUE | ||
NO MAXVALUE | ||
CACHE 100; | ||
|
||
CREATE TABLE IF NOT EXISTS USERS.USERS | ||
CREATE TABLE IF NOT EXISTS codes.USERS | ||
( | ||
ID numeric not null | ||
constraint "USER_PK" | ||
primary key DEFAULT nextval('USERS."USER_SEQ"'), | ||
primary key DEFAULT nextval('codes."USER_SEQ"'), | ||
NAME varchar(200) not null, | ||
EMAIL varchar(200) not null | ||
); | ||
INSERT INTO USERS.USERS (NAME, EMAIL) | ||
INSERT INTO codes.USERS (NAME, EMAIL) | ||
VALUES ('John', '[email protected]'), | ||
('Jane', '[email protected]'), | ||
('Jack', '[email protected]'), | ||
|
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 +1 @@ | ||
ALTER SEQUENCE USERS."USER_SEQ" RESTART WITH 6 CACHE 1; | ||
ALTER SEQUENCE codes."USER_SEQ" RESTART WITH 6 CACHE 1; |
Oops, something went wrong.