From 99e5bdcff56bdfd988479b864821b46cc92d8c2a Mon Sep 17 00:00:00 2001 From: b1ek Date: Thu, 23 Feb 2023 16:44:39 +1000 Subject: [PATCH] remove in second migration --- migrations/20230219070939-create-guestbook.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/migrations/20230219070939-create-guestbook.js b/migrations/20230219070939-create-guestbook.js index c82949b..9383086 100644 --- a/migrations/20230219070939-create-guestbook.js +++ b/migrations/20230219070939-create-guestbook.js @@ -6,8 +6,6 @@ module.exports = { await queryInterface.createTable('guestbook', struct); }, async down(queryInterface, Sequelize) { - if (await queryInterface.tableExists('guestbook')) { - await queryInterface.dropTable('guestbook'); - } + await queryInterface.dropTable('guestbook'); } }; \ No newline at end of file