From e0af3a292e395a51c2f9db8e1ea9de815cad0483 Mon Sep 17 00:00:00 2001 From: adisbladis <adisbladis@gmail.com> Date: Thu, 15 Jun 2023 09:03:10 +1200 Subject: [PATCH] Only create ltree postgres extension in migration if doesn't already exist (#3092) --- migrations/2022-07-07-182650_comment_ltrees/up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/2022-07-07-182650_comment_ltrees/up.sql b/migrations/2022-07-07-182650_comment_ltrees/up.sql index 9f031ea6..4d2598dd 100644 --- a/migrations/2022-07-07-182650_comment_ltrees/up.sql +++ b/migrations/2022-07-07-182650_comment_ltrees/up.sql @@ -30,7 +30,7 @@ drop view comment_alias_1; alter table comment drop column read; -create extension ltree; +create extension if not exists ltree; alter table comment add column path ltree not null default '0'; alter table comment_aggregates add column child_count integer not null default 0; -- 2.44.1