From b903a94af2c7754baaabe32b4e0f6a2a90b307d4 Mon Sep 17 00:00:00 2001 From: lesion Date: Sat, 3 Aug 2019 01:02:05 +0200 Subject: [PATCH] minor --- server/migrations/20190801105908-likes.js | 2 +- server/migrations/20190801110053-boost.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/migrations/20190801105908-likes.js b/server/migrations/20190801105908-likes.js index 275700a9..883ea8b1 100644 --- a/server/migrations/20190801105908-likes.js +++ b/server/migrations/20190801105908-likes.js @@ -2,7 +2,7 @@ module.exports = { up: (queryInterface, Sequelize) => { - queryInterface.addColumn('event', 'likes', { + return queryInterface.addColumn('event', 'likes', { type: Sequelize.JSON, defaultValue: [] }) diff --git a/server/migrations/20190801110053-boost.js b/server/migrations/20190801110053-boost.js index d45110aa..eee802b5 100644 --- a/server/migrations/20190801110053-boost.js +++ b/server/migrations/20190801110053-boost.js @@ -2,7 +2,7 @@ module.exports = { up: (queryInterface, Sequelize) => { - queryInterface.addColumn('event', 'boost', { + return queryInterface.addColumn('event', 'boost', { type: Sequelize.JSON, defaultValue: [] })