16 lines
475 B
JavaScript
16 lines
475 B
JavaScript
'use strict';
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
/** @param {import('sequelize').QueryInterface} queryInterface */
|
|
async up (queryInterface, DataTypes) {
|
|
const struct = require('../models').Article.structure;
|
|
queryInterface.createTable('articles', struct);
|
|
},
|
|
|
|
/** @param {import('sequelize').QueryInterface} queryInterface */
|
|
async down (queryInterface, DataTypes) {
|
|
await queryInterface.dropTable('articles');
|
|
}
|
|
};
|