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; + `);