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 index 000000000..d1d35659a --- /dev/null +++ b/migrations/2022-04-12-185205_change_default_listing_type_to_local/down.sql @@ -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 index 000000000..15f0509e9 --- /dev/null +++ b/migrations/2022-04-12-185205_change_default_listing_type_to_local/up.sql @@ -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;