From 97c1548f0024e5fd90d168384e69fa7ee7b6ad2b Mon Sep 17 00:00:00 2001 From: "Shaurya Singhal(jugshaurya)" Date: Wed, 10 Jun 2020 17:22:59 +0530 Subject: [PATCH] [bugfix]: extra non-required migrations delete fixes(#136) --- ...is_public_and_is_open_to_calendar_event.js | 25 ------------------- ...00526035531-add_slug_to_calendar_events.js | 18 ------------- 2 files changed, 43 deletions(-) delete mode 100644 api/migrations/20200526035358-add_is_public_and_is_open_to_calendar_event.js delete mode 100644 api/migrations/20200526035531-add_slug_to_calendar_events.js diff --git a/api/migrations/20200526035358-add_is_public_and_is_open_to_calendar_event.js b/api/migrations/20200526035358-add_is_public_and_is_open_to_calendar_event.js deleted file mode 100644 index dbf3a24..0000000 --- a/api/migrations/20200526035358-add_is_public_and_is_open_to_calendar_event.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; - -module.exports = { - up: (queryInterface, Sequelize) => { - return Promise.all([ - queryInterface.addColumn('calendar_events', 'is_open', { - allowNull: false, - type: Sequelize.BOOLEAN, - defaultValue: false, - }), - queryInterface.addColumn('calendar_events', 'is_public', { - allowNull: false, - type: Sequelize.BOOLEAN, - defaultValue: false, - }), - ]); - }, - - down: (queryInterface, Sequelize) => { - return Promise.all([ - queryInterface.removeColumn('calendar_events', 'is_open'), - queryInterface.removeColumn('calendar_events', 'is_public'), - ]); - }, -}; diff --git a/api/migrations/20200526035531-add_slug_to_calendar_events.js b/api/migrations/20200526035531-add_slug_to_calendar_events.js deleted file mode 100644 index 294ef46..0000000 --- a/api/migrations/20200526035531-add_slug_to_calendar_events.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -module.exports = { - up: (queryInterface, Sequelize) => { - return Promise.all([ - queryInterface.addColumn('calendar_events', 'slug', { - allowNull: true, - type: Sequelize.STRING, - }), - ]); - }, - - down: (queryInterface, Sequelize) => { - return Promise.all([ - queryInterface.removeColumn('calendar_events', 'slug'), - ]); - }, -};