require_application: true
application_question: "string"
private_instance: true
+ default_theme: "string"
}
# the domain name of your instance (mandatory)
hostname: "unset"
pub require_application: Option<bool>,
pub application_question: Option<String>,
pub private_instance: Option<bool>,
+ pub default_theme: Option<String>,
pub auth: Sensitive<String>,
}
pub require_application: Option<bool>,
pub application_question: Option<String>,
pub private_instance: Option<bool>,
+ pub default_theme: Option<String>,
pub auth: Sensitive<String>,
}
inbox_url,
private_key: Some(Some(keypair.private_key)),
public_key: Some(keypair.public_key),
+ default_theme: data.default_theme.clone(),
..SiteForm::default()
};
require_application: setup.require_application,
application_question: setup.application_question.to_owned(),
private_instance: setup.private_instance,
+ default_theme: setup.default_theme.to_owned(),
auth: admin_jwt,
};
create_site.perform(context, websocket_id).await?;
require_application: data.require_application,
application_question,
private_instance: data.private_instance,
+ default_theme: data.default_theme.clone(),
..SiteForm::default()
};
inbox_url -> Text,
private_key -> Nullable<Text>,
public_key -> Text,
+ default_theme -> Text,
}
}
pub inbox_url: DbUrl,
pub private_key: Option<String>,
pub public_key: String,
+ pub default_theme: String,
}
#[derive(Insertable, AsChangeset, Default)]
pub inbox_url: Option<DbUrl>,
pub private_key: Option<Option<String>>,
pub public_key: Option<String>,
+ pub default_theme: Option<String>,
}
pub application_question: Option<String>,
#[default(None)]
pub private_instance: Option<bool>,
+ #[default(None)]
+ pub default_theme: Option<String>,
}
--- /dev/null
+alter table site drop column default_theme;
\ No newline at end of file
--- /dev/null
+alter table site add column default_theme text not null default 'browser';
\ No newline at end of file