diff --git a/crates/db_schema/src/schema.rs b/crates/db_schema/src/schema.rs index ac4ddc47a4..fa98354fd9 100644 --- a/crates/db_schema/src/schema.rs +++ b/crates/db_schema/src/schema.rs @@ -382,8 +382,7 @@ diesel::table! { password_encrypted -> Text, email -> Nullable, show_nsfw -> Bool, - #[max_length = 20] - theme -> Varchar, + theme -> Text, default_sort_type -> SortTypeEnum, default_listing_type -> ListingTypeEnum, #[max_length = 20] diff --git a/migrations/2023-06-22-101245_increase_user_theme_column_size/down.sql b/migrations/2023-06-22-101245_increase_user_theme_column_size/down.sql new file mode 100644 index 0000000000..0731e06820 --- /dev/null +++ b/migrations/2023-06-22-101245_increase_user_theme_column_size/down.sql @@ -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; \ No newline at end of file diff --git a/migrations/2023-06-22-101245_increase_user_theme_column_size/up.sql b/migrations/2023-06-22-101245_increase_user_theme_column_size/up.sql new file mode 100644 index 0000000000..cbab256632 --- /dev/null +++ b/migrations/2023-06-22-101245_increase_user_theme_column_size/up.sql @@ -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;