-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #471 from carbon-bond/robot-account
機器人帳號
- Loading branch information
Showing
57 changed files
with
2,372 additions
and
1,280 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.
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,15 @@ | ||
ALTER TABLE users | ||
ADD COLUMN api_key_hashed bytea DEFAULT NULL, | ||
ADD COLUMN api_key_tail varchar(5) DEFAULT NULL, | ||
ADD COLUMN is_robot boolean NOT NULL DEFAULT FALSE; | ||
|
||
ALTER TYPE notification_kind ADD VALUE 'mention'; | ||
|
||
CREATE TABLE webhooks ( | ||
id bigserial PRIMARY KEY, | ||
user_id bigint REFERENCES users (id) NOT NULL, | ||
target_url text NOT NULL, | ||
secret varchar(32) NOT NULL DEFAULT '', | ||
create_time timestamptz NOT NULL DEFAULT NOW() | ||
-- event_set notification_kind, | ||
); |
1 change: 1 addition & 0 deletions
1
api-service/migrations/20230319080114_add_mentioned_in_comment_notification.sql
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 @@ | ||
ALTER TYPE notification_kind ADD VALUE 'mentioned_in_comment'; |
Oops, something went wrong.