-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable PostgreSQL tests in GitHub Actions
- Loading branch information
1 parent
66f830c
commit ea53432
Showing
5 changed files
with
39 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
BEGIN; | ||
CREATE TABLE auth ( | ||
id serial PRIMARY KEY, | ||
username TEXT NOT NULL UNIQUE, | ||
password TEXT NOT NULL, | ||
allow smallint DEFAULT 1 NOT NULL, | ||
created timestamp with time zone DEFAULT NOW(), | ||
updated timestamp | ||
); | ||
|
||
CREATE TABLE acl( | ||
id serial PRIMARY KEY, | ||
username TEXT NOT NULL, | ||
topic TEXT NOT NULL, | ||
access smallint DEFAULT 3 NOT NULL, | ||
created timestamp with time zone DEFAULT NOW(), | ||
updated timestamp | ||
); | ||
CREATE INDEX acl_username_idx ON acl(username); | ||
|
||
INSERT INTO auth (username, password, allow) VALUES ('zhangsan', '321654', 1); | ||
INSERT INTO acl (username, topic, access) VALUES ('zhangsan', 'topictest/1', 2); | ||
|
||
COMMIT; |