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.

This commit is contained in:
friendica
2014-01-28 15:05:44 -08:00
parent f104b4dc27
commit 8c8be2a05e
5 changed files with 12 additions and 5 deletions

View File

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

View File

@@ -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;
}