]> Untitled Git - lemmy.git/commitdiff
Changing default listing type to Local from Subscribed.
authorDessalines <tyhou13@gmx.com>
Tue, 12 Apr 2022 18:55:47 +0000 (14:55 -0400)
committerNutomic <me@nutomic.com>
Wed, 13 Apr 2022 17:35:21 +0000 (17:35 +0000)
migrations/2022-04-12-185205_change_default_listing_type_to_local/down.sql [new file with mode: 0644]
migrations/2022-04-12-185205_change_default_listing_type_to_local/up.sql [new file with mode: 0644]

diff --git a/migrations/2022-04-12-185205_change_default_listing_type_to_local/down.sql b/migrations/2022-04-12-185205_change_default_listing_type_to_local/down.sql
new file mode 100644 (file)
index 0000000..d1d3565
--- /dev/null
@@ -0,0 +1,3 @@
+-- 0 is All, 1 is Local, 2 is Subscribed
+
+alter table only local_user alter column default_listing_type set default 2;
diff --git a/migrations/2022-04-12-185205_change_default_listing_type_to_local/up.sql b/migrations/2022-04-12-185205_change_default_listing_type_to_local/up.sql
new file mode 100644 (file)
index 0000000..15f0509
--- /dev/null
@@ -0,0 +1,3 @@
+-- 0 is All, 1 is Local, 2 is Subscribed
+
+alter table only local_user alter column default_listing_type set default 1;