Fix crash because mailboxName is null

mailboxName is always a non-empty string. even for apps that don't use
it, we allocate a mailbox with .app suffix
This commit is contained in:
Girish Ramakrishnan
2019-03-02 19:07:49 -08:00
parent d04628a42d
commit 598a9664a7
3 changed files with 30 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ CREATE TABLE IF NOT EXISTS apps(
robotsTxt TEXT,
enableBackup BOOLEAN DEFAULT 1, // misnomer: controls automatic daily backups
enableAutomaticUpdate BOOLEAN DEFAULT 1,
mailboxName VARCHAR(128), // mailbox of this app
mailboxName VARCHAR(128), // mailbox of this app. default allocated as '.app'
// the following fields do not belong here, they can be removed when we use a queue for apptask
restoreConfigJson VARCHAR(256), // used to pass backupId to restore from to apptask