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

11 lines
344 B
JavaScript
Raw Normal View History

2023-02-19 10:54:30 +01:00
'use strict';
/** @type {import('sequelize-cli').Migration} */
module.exports = {
2023-02-19 15:19:46 +01:00
async up(queryInterface, DataTypes) {
const struct = require('../models').Guestbook.structure;
await queryInterface.createTable('guestbook', struct);
2023-02-19 10:54:30 +01:00
},
async down(queryInterface, Sequelize) {
2023-02-23 07:44:39 +01:00
await queryInterface.dropTable('guestbook');
2023-02-19 10:54:30 +01:00
}
};