diff options
Diffstat (limited to 'core/Db/Schema/Mysql.php')
-rw-r--r-- | core/Db/Schema/Mysql.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Db/Schema/Mysql.php b/core/Db/Schema/Mysql.php index fcf943bbdd..00fb8c31e9 100644 --- a/core/Db/Schema/Mysql.php +++ b/core/Db/Schema/Mysql.php @@ -53,6 +53,7 @@ class Mysql implements SchemaInterface date_registered TIMESTAMP NULL, ts_password_modified TIMESTAMP NULL, idchange_last_viewed TIMESTAMP NULL, + invite_status enum('accept','pending','decline','expired') DEFAULT 'accept', PRIMARY KEY(login) ) ENGINE=$engine DEFAULT CHARSET=$charset ", @@ -589,8 +590,8 @@ class Mysql implements SchemaInterface $db = $this->getDb(); $db->query("INSERT IGNORE INTO " . Common::prefixTable("user") . " (`login`, `password`, `email`, `twofactor_secret`, `superuser_access`, `date_registered`, `ts_password_modified`, - `idchange_last_viewed`) - VALUES ( 'anonymous', '', 'anonymous@example.org', '', 0, '$now', '$now' , NULL);"); + `idchange_last_viewed`, `invite_status`) + VALUES ( 'anonymous', '', 'anonymous@example.org', '', 0, '$now', '$now' , NULL, 'accept');"); $model = new Model(); $model->addTokenAuth('anonymous', 'anonymous', 'anonymous default token', $now); |