diff --git a/api/source/service/migrations/0034.js b/api/source/service/migrations/0034.js new file mode 100644 index 00000000..df5ea95b --- /dev/null +++ b/api/source/service/migrations/0034.js @@ -0,0 +1,20 @@ +const MigrationHandler = require('./lib/MigrationHandler') + +const upMigration = [ + `ALTER TABLE asset ADD INDEX idx_state (state ASC)`, + `ALTER TABLE collection ADD INDEX idx_state (state ASC)` +] + +const downMigration = [ +] + +const migrationHandler = new MigrationHandler(upMigration, downMigration) +module.exports = { + up: async (pool) => { + await migrationHandler.up(pool, __filename) + }, + down: async (pool) => { + await migrationHandler.down(pool, __filename) + } +} +