-
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
48 changed files
with
3,811 additions
and
75 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ on: | |
push: | ||
branches: | ||
- "*" | ||
- "!main" | ||
|
||
env: | ||
PSQLQUEUE_TEST_DATABASE_URL: "postgres://psqlqueue:[email protected]:5432/psqlqueue-test?sslmode=disable" | ||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DROP TABLE IF EXISTS subscriptions; | ||
DROP TABLE IF EXISTS topics; |
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,15 @@ | ||
CREATE TABLE IF NOT EXISTS topics( | ||
id VARCHAR PRIMARY KEY NOT NULL, | ||
created_at TIMESTAMPTZ NOT NULL | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS subscriptions( | ||
id VARCHAR PRIMARY KEY NOT NULL, | ||
topic_id VARCHAR NOT NULL, | ||
queue_id VARCHAR NOT NULL, | ||
message_filters JSONB, | ||
created_at TIMESTAMPTZ NOT NULL, | ||
FOREIGN KEY (topic_id) REFERENCES topics (id) ON DELETE CASCADE, | ||
FOREIGN KEY (queue_id) REFERENCES queues (id) ON DELETE CASCADE | ||
); | ||
CREATE UNIQUE INDEX IF NOT EXISTS subscriptions_topic_id_queue_id_idx ON subscriptions (topic_id, queue_id); |
Oops, something went wrong.