aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-25 17:55:30 -0800
committerfriendica <info@friendica.com>2014-02-25 17:55:30 -0800
commit2c72e49d1f63404b464f284d86ce2dce7f2eb493 (patch)
treef4635c09daa817c9b9cd0d69ffa7ae91ef11f7a8 /install
parent9a2e73ae1522c7e69d7d6e0ca6c1089189c6e697 (diff)
downloadvolse-hubzilla-2c72e49d1f63404b464f284d86ce2dce7f2eb493.tar.gz
volse-hubzilla-2c72e49d1f63404b464f284d86ce2dce7f2eb493.tar.bz2
volse-hubzilla-2c72e49d1f63404b464f284d86ce2dce7f2eb493.zip
more chatroom discovery
Diffstat (limited to 'install')
-rw-r--r--install/database.sql11
-rw-r--r--install/update.php20
2 files changed, 30 insertions, 1 deletions
diff --git a/install/database.sql b/install/database.sql
index ac35f9bc3..5d00afb03 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -1027,6 +1027,17 @@ CREATE TABLE IF NOT EXISTS `xchan` (
KEY `xchan_follow` (`xchan_follow`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+CREATE TABLE IF NOT EXISTS `xchat` (
+ `xchat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `xchat_url` char(255) NOT NULL DEFAULT '',
+ `xchat_desc` char(255) NOT NULL DEFAULT '',
+ `xchat_xchan` char(255) NOT NULL DEFAULT '',
+ PRIMARY KEY (`xchat_id`),
+ KEY `xchat_url` (`xchat_url`),
+ KEY `xchat_desc` (`xchat_desc`),
+ KEY `xchat_xchan` (`xchat_xchan`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
CREATE TABLE IF NOT EXISTS `xconfig` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`xchan` char(255) NOT NULL,
diff --git a/install/update.php b/install/update.php
index 9ad74fec4..8612e7354 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1099 );
+define( 'UPDATE_VERSION' , 1100 );
/**
*
@@ -1118,3 +1118,21 @@ function update_r1098() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+function update_r1099() {
+ $r = q("CREATE TABLE IF NOT EXISTS `xchat` (
+ `xchat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `xchat_url` char(255) NOT NULL DEFAULT '',
+ `xchat_desc` char(255) NOT NULL DEFAULT '',
+ `xchat_xchan` char(255) NOT NULL DEFAULT '',
+ PRIMARY KEY (`xchat_id`),
+ KEY `xchat_url` (`xchat_url`),
+ KEY `xchat_desc` (`xchat_desc`),
+ KEY `xchat_xchan` (`xchat_xchan`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 ");
+
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+