From 3dcbd67ab3f0b0808668ee5a382c560eac288e46 Mon Sep 17 00:00:00 2001 From: lesion Date: Fri, 24 Jun 2022 15:57:12 +0200 Subject: [PATCH] remove useless migration --- server/migrations/20191116145701-followers.js | 7 ------- .../20210308194339-sending_notification_status.js | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/server/migrations/20191116145701-followers.js b/server/migrations/20191116145701-followers.js index f404435c..9a121fa5 100644 --- a/server/migrations/20191116145701-followers.js +++ b/server/migrations/20191116145701-followers.js @@ -3,13 +3,6 @@ module.exports = { await queryInterface.addColumn('fed_users', 'follower', { type: Sequelize.BOOLEAN }) - - // const users = queryInterface.sequelize.query('SELECT ') - // const followers = users.reduce((followers, user) => followers.concat(user.followers), []) - // console.error(followers) - // const followers = await Sequelize.models.user_followers.findAll() - // console.error(followers) - // get current followers }, down: (queryInterface, Sequelize) => { diff --git a/server/migrations/20210308194339-sending_notification_status.js b/server/migrations/20210308194339-sending_notification_status.js index aa2c4334..285be310 100644 --- a/server/migrations/20210308194339-sending_notification_status.js +++ b/server/migrations/20210308194339-sending_notification_status.js @@ -2,7 +2,7 @@ module.exports = { up: (queryInterface, Sequelize) => { - return queryInterface.sequelize.query('ALTER TYPE "enum_event_notifications_status" ADD VALUE \'sending\'').catch(e => {}) + // return queryInterface.sequelize.query('ALTER TYPE "enum_event_notifications_status" ADD VALUE \'sending\'').catch(e => {}) }, down: (queryInterface, Sequelize) => {