mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 07:36:01 +00:00
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:
parent
21d5349785
commit
c5886404ef
|
@ -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]
|
||||||
|
|
|
@ -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;
|
|
@ -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;
|
Loading…
Reference in a new issue