-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow disabling all repositories notifications (#3612)
Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
- Loading branch information
Showing
4 changed files
with
23 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
9 changes: 9 additions & 0 deletions
9
database/migrations/schema/054_repositories_notifications_disabled.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,9 @@ | ||
alter table "user" add column repositories_notifications_disabled boolean; | ||
create index if not exists user_repositories_notifications_disabled_idx | ||
on "user" (user_id) | ||
where repositories_notifications_disabled = true; | ||
|
||
---- create above / drop below ---- | ||
|
||
drop index if exists user_repositories_notifications_disabled_idx; | ||
alter table "user" drop column repositories_notifications_disabled; |
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