-
Notifications
You must be signed in to change notification settings - Fork 9
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
784 additions
and
112 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,13 @@ | ||
SET statement_timeout = 0; | ||
|
||
--bun:split | ||
|
||
DROP TABLE subscription_hmac_keys; | ||
|
||
--bun:split | ||
|
||
ALTER TABLE subscriptions DROP COLUMN is_silent; | ||
|
||
--bun:split | ||
|
||
DROP INDEX CONCURRENTLY IF EXISTS subscriptions_installation_id_topic_idx; |
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,21 @@ | ||
SET statement_timeout = 0; | ||
|
||
--bun:split | ||
|
||
CREATE TABLE subscription_hmac_keys ( | ||
subscription_id INTEGER NOT NULL, | ||
thirty_day_periods_since_epoch INTEGER NOT NULL, | ||
created_at TIMESTAMPTZ DEFAULT NOW(), | ||
updated_at TIMESTAMPTZ DEFAULT NOW(), | ||
key BYTEA NOT NULL, | ||
PRIMARY KEY (subscription_id, thirty_day_periods_since_epoch), | ||
FOREIGN KEY (subscription_id) REFERENCES subscriptions(id) ON DELETE CASCADE | ||
); | ||
|
||
--bun:split | ||
|
||
ALTER TABLE subscriptions ADD COLUMN is_silent BOOLEAN DEFAULT FALSE; | ||
|
||
--bun:split | ||
|
||
CREATE UNIQUE INDEX CONCURRENTLY subscriptions_installation_id_topic_idx ON subscriptions (installation_id, topic); |
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
Oops, something went wrong.