stop requiring superuser to run migrations (#3002)

Fixes <https://github.com/LemmyNet/lemmy/issues/2863>.
This commit is contained in:
Charles Hall 2023-06-14 04:54:12 -07:00 committed by GitHub
parent 1c7bfd6be8
commit f43bb454c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;