Change eventlog db column types from JSON to TEXT

JSON type is only supported on oracle mysql and none of the features are
used
This commit is contained in:
Johannes Zellner
2017-07-31 09:44:28 +02:00
parent 0db4387013
commit a4dff215f1
4 changed files with 35 additions and 5 deletions

View File

@@ -116,8 +116,8 @@ CREATE TABLE IF NOT EXISTS backups(
CREATE TABLE IF NOT EXISTS eventlog(
id VARCHAR(128) NOT NULL,
action VARCHAR(128) NOT NULL,
source JSON, /* { userId, username, ip }. userId can be null for cron,sysadmin */
data JSON, /* free flowing json based on action */
source TEXT, /* { userId, username, ip }. userId can be null for cron,sysadmin */
data TEXT, /* free flowing json based on action */
creationTime TIMESTAMP, /* FIXME: precision must be TIMESTAMP(2) */
PRIMARY KEY (id));