File tree Expand file tree Collapse file tree 5 files changed +9
-0
lines changed
migrations/2024-08-29-135458_add-publish-notifications-column Expand file tree Collapse file tree 5 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1+ ALTER TABLE users DROP publish_notifications;
Original file line number Diff line number Diff line change 1+ alter table users
2+ add column publish_notifications boolean not null default true;
3+
4+ comment on column users.publish_notifications is ' Whether or not the user wants to receive notifications when a package they own is published' ;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ pub struct User {
2424 pub account_lock_reason : Option < String > ,
2525 pub account_lock_until : Option < NaiveDateTime > ,
2626 pub is_admin : bool ,
27+ pub publish_notifications : bool ,
2728}
2829
2930impl User {
Original file line number Diff line number Diff line change @@ -806,6 +806,8 @@ diesel::table! {
806806 ///
807807 /// (Automatically generated by Diesel.)
808808 is_admin -> Bool ,
809+ /// Whether or not the user wants to receive notifications when a package they own is published
810+ publish_notifications -> Bool ,
809811 }
810812}
811813
Original file line number Diff line number Diff line change @@ -193,6 +193,7 @@ gh_id = "public"
193193account_lock_reason = " private"
194194account_lock_until = " private"
195195is_admin = " private"
196+ publish_notifications = " private"
196197[users .column_defaults ]
197198gh_access_token = " ''"
198199
You can’t perform that action at this time.
0 commit comments