diff --git a/migrations/schema.sql b/migrations/schema.sql index 080bc5e67..1c512572c 100644 --- a/migrations/schema.sql +++ b/migrations/schema.sql @@ -34,6 +34,7 @@ CREATE TABLE IF NOT EXISTS users( active BOOLEAN DEFAULT 1, avatar MEDIUMBLOB, backgroundImage MEDIUMBLOB, + language VARCHAR(8) NOT NULL DEFAULT "", loginLocationsJson MEDIUMTEXT, // { locations: [{ ip, userAgent, city, country, ts }] } notificationConfigJson TEXT, @@ -81,14 +82,16 @@ CREATE TABLE IF NOT EXISTS apps( ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, // when this db record was updated (useful for UI caching) memoryLimit BIGINT DEFAULT 0, cpuQuota INTEGER DEFAULT 100, - xFrameOptions VARCHAR(512), sso BOOLEAN DEFAULT 1, // whether user chose to enable SSO + proxyAuth BOOLEAN DEFAULT 0, // whether proxy auth is enabled devicesJson TEXT, debugModeJson TEXT, // options for development mode reverseProxyConfigJson TEXT, // { robotsTxt, csp, hstsPreload } enableBackup BOOLEAN DEFAULT 1, // misnomer: controls automatic daily backups enableAutomaticUpdate BOOLEAN DEFAULT 1, enableMailbox BOOLEAN DEFAULT 1, // whether sendmail addon is enabled + enableTurn BOOLEAN DEFAULT 1, + enableRedis BOOLEAN DEFAULT 1, mailboxName VARCHAR(128), // mailbox of this app mailboxDomain VARCHAR(128), // mailbox domain of this app mailboxDisplayName VARCHAR(128), // mailbox display name @@ -102,6 +105,8 @@ CREATE TABLE IF NOT EXISTS apps( storageVolumePrefix VARCHAR(128), taskId INTEGER, // current task errorJson TEXT, + operatorsJson TEXT, + updateInfoJson TEXT, servicesConfigJson TEXT, // app services configuration containerIp VARCHAR(16) UNIQUE, // this is not-null because of ip allocation fails, user can 'repair' packageIcon MEDIUMBLOB,