From: Charles Hall Date: Wed, 14 Jun 2023 11:54:12 +0000 (-0700) Subject: stop requiring superuser to run migrations (#3002) X-Git-Url: http://these/git/%22https:/nerdica.net/photo/contact/80/%24%7Bsrc%7D?a=commitdiff_plain;h=f43bb454c3e429a74dd0e937bd64bc56104639db;p=lemmy.git stop requiring superuser to run migrations (#3002) Fixes . --- diff --git a/migrations/2022-07-07-182650_comment_ltrees/up.sql b/migrations/2022-07-07-182650_comment_ltrees/up.sql index fde9e1b3..9f031ea6 100644 --- a/migrations/2022-07-07-182650_comment_ltrees/up.sql +++ b/migrations/2022-07-07-182650_comment_ltrees/up.sql @@ -60,7 +60,7 @@ ORDER BY breadcrumb; -- Remove indexes and foreign key constraints, and disable triggers for faster updates -alter table comment disable trigger all; +alter table comment disable trigger user; alter table comment drop constraint if exists comment_creator_id_fkey; alter table comment drop constraint if exists comment_parent_id_fkey; @@ -115,4 +115,4 @@ create index idx_path_gist on comment using gist (path); -- Drop the parent_id column alter table comment drop column parent_id cascade; -alter table comment enable trigger all; +alter table comment enable trigger user;