diff options
author | friendica <info@friendica.com> | 2014-01-28 15:05:44 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-28 15:05:44 -0800 |
commit | 8c8be2a05e7646595b2c811dd4ab2ac7d7a98b69 (patch) | |
tree | 8796c510991616aa870db1f08c0425f066a2e282 /install | |
parent | f104b4dc275891785ec03abd779d8aafe5163815 (diff) | |
download | volse-hubzilla-8c8be2a05e7646595b2c811dd4ab2ac7d7a98b69.tar.gz volse-hubzilla-8c8be2a05e7646595b2c811dd4ab2ac7d7a98b69.tar.bz2 volse-hubzilla-8c8be2a05e7646595b2c811dd4ab2ac7d7a98b69.zip |
add client field to chatpresence - which will give us a place to put IP addresses for webRTC. Might as well allow for that since we'll (soon) have presence. Then we wouldn't need SIP and folks can "just" p2p each other using any mechanism they wish if they have permission to do so.
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 1 | ||||
-rw-r--r-- | install/update.php | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/install/database.sql b/install/database.sql index 1c87b725b..dba03da65 100644 --- a/install/database.sql +++ b/install/database.sql @@ -232,6 +232,7 @@ CREATE TABLE IF NOT EXISTS `chatpresence` ( `cp_xchan` char(255) NOT NULL DEFAULT '', `cp_last` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `cp_status` char(255) NOT NULL, + `cp_client` char(128) NOT NULL DEFAULT '', PRIMARY KEY (`cp_id`), KEY `cp_room` (`cp_room`), KEY `cp_xchan` (`cp_xchan`), diff --git a/install/update.php b/install/update.php index 9ab5db8c6..180b8d5a0 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1093 ); +define( 'UPDATE_VERSION' , 1094 ); /** * @@ -1054,3 +1054,9 @@ function update_r1092() { +function update_r1093() { + $r = q("ALTER TABLE `chatpresence` ADD `cp_client` CHAR( 128 ) NOT NULL DEFAULT ''"); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |