stop requiring superuser to run migrations (#3002)

Fixes <https://github.com/LemmyNet/lemmy/issues/2863>.
pull/3088/head^2
Charles Hall 12 months ago committed by GitHub
parent 1c7bfd6be8
commit f43bb454c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save