From ce8afa536b819ef273390687c5f3c303df25fa99 Mon Sep 17 00:00:00 2001 From: keyan Date: Wed, 13 Apr 2022 16:24:24 -0500 Subject: [PATCH] make path index compatible with postgres 12 --- prisma/migrations/20220412190704_item_path_index/migration.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prisma/migrations/20220412190704_item_path_index/migration.sql b/prisma/migrations/20220412190704_item_path_index/migration.sql index 2ec14089..f701cd03 100644 --- a/prisma/migrations/20220412190704_item_path_index/migration.sql +++ b/prisma/migrations/20220412190704_item_path_index/migration.sql @@ -1 +1 @@ -CREATE INDEX "item_gist_path_index" ON "Item" USING GIST ("path" gist_ltree_ops(siglen=2024)); \ No newline at end of file +CREATE INDEX IF NOT EXISTS "item_gist_path_index" ON "Item" USING GIST ("path"); \ No newline at end of file