From 8d1e3f99946d06588d9aca682c1ce85ce4b32e16 Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Fri, 15 Mar 2019 16:41:13 +0000 Subject: [server/log] sql JSON to TEXT for mariadb compatibility --- server/models/log.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/models') diff --git a/server/models/log.js b/server/models/log.js index 36fdf20..b003397 100644 --- a/server/models/log.js +++ b/server/models/log.js @@ -9,10 +9,10 @@ module.exports = (sequelize, DataTypes) => { }, timestamp: DataTypes.BIGINT, category: DataTypes.STRING, - description: DataTypes.STRING(2048), - groupSnapshot: DataTypes.JSON, - clientSnapshot: DataTypes.JSON, - userSnapshot: DataTypes.JSON + description: DataTypes.TEXT, + groupSnapshot: DataTypes.TEXT, + clientSnapshot: DataTypes.TEXT, + userSnapshot: DataTypes.TEXT }, { timestamps: false, freezeTableName: true -- cgit v1.2.3-55-g7522