Skip to content

Commit

Permalink
stop requiring superuser to run migrations
Browse files Browse the repository at this point in the history
Fixes <#2863> and the problem
introduced by the previous commit.
  • Loading branch information
CobaltCause committed Jun 9, 2023
1 parent f1c4e09 commit 29c4144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrations/2022-07-07-182650_comment_ltrees/up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

0 comments on commit 29c4144

Please sign in to comment.