address review

This commit is contained in:
Felix Ableitner 2021-04-22 13:57:55 +02:00
parent 92561568e5
commit 4edd45a147
3 changed files with 4 additions and 4 deletions

View file

@ -71,8 +71,8 @@ pub struct CreateSite {
pub enable_downvotes: bool,
pub open_registration: bool,
pub enable_nsfw: bool,
pub auth: String,
pub community_creation_admin_only: bool,
pub auth: String,
}
#[derive(Deserialize)]
@ -85,8 +85,8 @@ pub struct EditSite {
pub enable_downvotes: bool,
pub open_registration: bool,
pub enable_nsfw: bool,
pub auth: String,
pub community_creation_admin_only: Option<bool>,
pub auth: String,
}
#[derive(Deserialize)]

View file

@ -1 +1 @@
ALTER TABLE site DROP COLUMN community_creation_admin_only;
ALTER TABLE site DROP COLUMN community_creation_admin_only;

View file

@ -1 +1 @@
ALTER TABLE site ADD COLUMN community_creation_admin_only bool NOT NULL;
ALTER TABLE site ADD COLUMN community_creation_admin_only bool NOT NULL DEFAULT false;