From cf412a4b54f7159601187305ad34f188a7e3e9a0 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 18 Jul 2020 16:42:41 +0200 Subject: [PATCH] fix(migration): omit index for old versions of postgres --- src/Model/Migration.hs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Model/Migration.hs b/src/Model/Migration.hs index 6dd91fa9b..6888a16a7 100644 --- a/src/Model/Migration.hs +++ b/src/Model/Migration.hs @@ -831,9 +831,6 @@ customMigrations = Map.fromListWith (>>) ALTER TABLE "file" RENAME TO "file_content"; DELETE FROM "file_content" WHERE "content" IS NULL OR "hash" IS NULL; |] - [executeQQ| - CREATE INDEX "file_content_hash_idx" ON "file_content" ("hash") INCLUDE ("id"); - |] [executeQQ| DELETE FROM "file_content" WHERE "id" IN ( @@ -852,7 +849,6 @@ customMigrations = Map.fromListWith (>>) WHERE t.rnum > 1); |] [executeQQ| - DROP INDEX "file_content_hash_idx"; ALTER TABLE "file_content" DROP COLUMN "title"; ALTER TABLE "file_content" DROP COLUMN "modified"; ALTER TABLE "file_content" DROP COLUMN "id";