Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't require SUPERUSER to run migrations #3002

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;

CobaltCause marked this conversation as resolved.
Show resolved Hide resolved
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;