mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
23 lines
507 B
JavaScript
23 lines
507 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
|
|
up: async (queryInterface) => {
|
|
const transaction = await queryInterface.sequelize.transaction();
|
|
|
|
try {
|
|
await queryInterface.removeIndex('rdioScannerCalls', ['system'], { transaction });
|
|
|
|
await queryInterface.removeIndex('rdioScannerCalls', ['talkgroup'], { transaction });
|
|
|
|
await transaction.commit();
|
|
|
|
} catch (err) {
|
|
await transaction.rollback();
|
|
|
|
throw err;
|
|
}
|
|
},
|
|
};
|
|
|