From c058df8fc49b1537234dfef87261f45c3223e32a Mon Sep 17 00:00:00 2001 From: Maksim Eltyshev Date: Thu, 27 Nov 2025 19:31:11 +0100 Subject: [PATCH] fix: Rename GIN indexes --- .../20251121231641_rename_gin_indexes.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 server/db/migrations/20251121231641_rename_gin_indexes.js diff --git a/server/db/migrations/20251121231641_rename_gin_indexes.js b/server/db/migrations/20251121231641_rename_gin_indexes.js new file mode 100644 index 00000000..3d2492c8 --- /dev/null +++ b/server/db/migrations/20251121231641_rename_gin_indexes.js @@ -0,0 +1,16 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +module.exports.up = (knex) => + knex.schema.raw(` + ALTER INDEX card_name_index RENAME TO card_name_gin_index; + ALTER INDEX card_description_index RENAME TO card_description_gin_index; + `); + +module.exports.down = (knex) => + knex.schema.raw(` + ALTER INDEX card_name_gin_index RENAME TO card_name_index; + ALTER INDEX card_description_gin_index RENAME TO card_description_index; + `);