lemmy/migrations/2023-08-08-163911_add_post_listing_mode_setting/up.sql
Dessalines 56e26fc3d4
Adding a post_view mode. Fixes #3730 (#3731)
* Adding a post_view mode. Fixes #3730

* Fix test.

* Addressing PR comments.

* Adding a post_view mode. Fixes #3730

* Fix test.

* Addressing PR comments.

* Fixing column order.

* Fix default Ok returns.

* Removing return Err(... where feasible.
2023-08-31 09:01:08 -04:00

10 lines
194 B
SQL

CREATE TYPE post_listing_mode_enum AS enum (
'List',
'Card',
'SmallCard'
);
ALTER TABLE local_user
ADD COLUMN post_listing_mode post_listing_mode_enum DEFAULT 'List' NOT NULL;