homepage.js/migrations/20230219070939-create-guest...

11 lines
344 B
JavaScript

'use strict';
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, DataTypes) {
const struct = require('../models').Guestbook.structure;
await queryInterface.createTable('guestbook', struct);
},
async down(queryInterface, Sequelize) {
await queryInterface.dropTable('guestbook');
}
};