Skip to content

Commit 4b5d56b

Browse files
committed
fix: created a migration to add an index on the code column in the TransactionDetails table
1 parent d5aed23 commit 4b5d56b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict';
2+
3+
/** @type {import('sequelize-cli').Migration} */
4+
module.exports = {
5+
async up(queryInterface) {
6+
await queryInterface.sequelize.query(
7+
'CREATE INDEX transactiondetails_code_gin_idx ON public."TransactionDetails" USING gin (code);',
8+
);
9+
},
10+
11+
async down(queryInterface) {
12+
await queryInterface.sequelize.query('DROP INDEX IF EXISTS transactiondetails_code_gin_idx;');
13+
},
14+
};

0 commit comments

Comments
 (0)