summaryrefslogtreecommitdiff
path: root/modules/user/helpers
diff options
context:
space:
mode:
authorTristan Zur <tzur@webserver.ccwn.org>2016-08-15 21:12:21 +0200
committerTristan Zur <tzur@webserver.ccwn.org>2016-08-15 21:12:21 +0200
commitc257d5b4f1c8d589e1ab0d44f6e68451f1518e68 (patch)
treea08aea2d4a91b9f6e9737e84008e12e7a2f9d379 /modules/user/helpers
parent854ca75400a8bae53f5fc708c87c822b02bbcda8 (diff)
Introducing notification via XMPP
Diffstat (limited to 'modules/user/helpers')
-rw-r--r--modules/user/helpers/user_installer.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php
index 67f6a3d..1c59acb 100644
--- a/modules/user/helpers/user_installer.php
+++ b/modules/user/helpers/user_installer.php
@@ -52,6 +52,12 @@ class user_installer {
module::clear_var("user", "mininum_password_length");
module::set_version("user", $version = 4);
}
+
+ if ($version == 4) {
+ $db = Database::instance();
+ $db->query("ALTER TABLE {users} ADD COLUMN `jabberid` VARCHAR(255) default NULL");
+ module::set_version("user", $version = 5);
+ }
}
static function uninstall() {
@@ -85,6 +91,7 @@ class user_installer {
`hash` char(32) default NULL,
`url` varchar(255) default NULL,
`locale` char(10) default NULL,
+ `jabberid` VARCHAR(255) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY(`hash`),
UNIQUE KEY(`name`))