fix: Rename GIN indexes

This commit is contained in:
Maksim Eltyshev
2025-11-27 19:31:11 +01:00
parent 0023c63be8
commit c058df8fc4

View File

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