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) {
|
2023-02-22 15:21:29 +01:00
|
|
|
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
|
|
|
}
|
|
|
|
};
|