schema: add missing fields

This commit is contained in:
Girish Ramakrishnan
2026-04-05 11:12:06 +02:00
parent 83917f98f5
commit 33691a6507

View File

@@ -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,