Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 3bbb1d7

Browse files
authored
[ORCT 118] Migration due to insert procedures changes (#198)
1 parent 4c3a64a commit 3bbb1d7

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
'use strict';
2+
3+
/** @type {import('sequelize-cli').Migration} */
4+
module.exports = {
5+
async up (queryInterface, Sequelize) {
6+
if (process.env.npm_package_version === '0.3.0') {
7+
await queryInterface.bulkDelete('periods', {}, {truncate: true, cascade: true});
8+
}
9+
},
10+
11+
12+
async down (queryInterface, Sequelize) { }
13+
};

0 commit comments

Comments
 (0)