mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
stop requiring superuser to run migrations (#3002)
Fixes <https://github.com/LemmyNet/lemmy/issues/2863>.
This commit is contained in:
parent
1c7bfd6be8
commit
f43bb454c3
@ -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…
Reference in New Issue
Block a user