mirror of
https://github.com/plankanban/planka.git
synced 2026-02-05 00:39:58 +03:00
fix: Rename GIN indexes
This commit is contained in:
16
server/db/migrations/20251121231641_rename_gin_indexes.js
Normal file
16
server/db/migrations/20251121231641_rename_gin_indexes.js
Normal 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;
|
||||
`);
|
||||
Reference in New Issue
Block a user