homepage.js/migrations/20230222114001-create-artic...

16 lines
475 B
JavaScript
Raw Permalink Normal View History

2023-02-22 14:55:17 +01:00
'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);
2023-02-22 14:55:17 +01:00
},
/** @param {import('sequelize').QueryInterface} queryInterface */
async down (queryInterface, DataTypes) {
2023-02-23 07:43:58 +01:00
await queryInterface.dropTable('articles');
2023-02-22 14:55:17 +01:00
}
};