Update DB local_user.theme type to text (#3266)

* Update local_user.theme type to text

* fix default value

* Undo auto generate changes
This commit is contained in:
Scott 2023-06-26 18:23:04 +09:30 committed by GitHub
parent 21d5349785
commit c5886404ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View file

@ -381,8 +381,7 @@ diesel::table! {
password_encrypted -> Text, password_encrypted -> Text,
email -> Nullable<Text>, email -> Nullable<Text>,
show_nsfw -> Bool, show_nsfw -> Bool,
#[max_length = 20] theme -> Text,
theme -> Varchar,
default_sort_type -> SortTypeEnum, default_sort_type -> SortTypeEnum,
default_listing_type -> ListingTypeEnum, default_listing_type -> ListingTypeEnum,
#[max_length = 20] #[max_length = 20]

View file

@ -0,0 +1,2 @@
alter table only local_user alter column theme TYPE character varying(20);
alter table only local_user alter column theme set default 'browser'::character varying;

View file

@ -0,0 +1,2 @@
alter table only local_user alter column theme type text;
alter table only local_user alter column theme set default 'browser'::text;