From 3f2d126dba95ace251cf49f952ffa0ada6729f65 Mon Sep 17 00:00:00 2001 From: Christian Hofmaier Date: Sun, 14 Apr 2019 16:20:31 +0000 Subject: [eventmanager] show config name instead of config id in event table - change models/migrations for config association --- server/migrations/20190402032400-add-configid-event.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/migrations') diff --git a/server/migrations/20190402032400-add-configid-event.js b/server/migrations/20190402032400-add-configid-event.js index 34e6ac9..fa44b52 100644 --- a/server/migrations/20190402032400-add-configid-event.js +++ b/server/migrations/20190402032400-add-configid-event.js @@ -1,7 +1,7 @@ 'use strict' module.exports = { up: (queryInterface, Sequelize) => { - return queryInterface.addColumn('events', 'config', { + return queryInterface.addColumn('events', 'configId', { type: Sequelize.INTEGER, onDelete: 'SET NULL', references: { @@ -11,6 +11,6 @@ module.exports = { }) }, down: (queryInterface, Sequelize) => { - return queryInterface.removeColumn('events', 'config') + return queryInterface.removeColumn('events', 'configId') } } -- cgit v1.2.3-55-g7522