aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2012-12-20 19:14:54 +0000
committerThomas Willingham <founder@kakste.com>2012-12-20 19:14:54 +0000
commite31600f24f45eca378759918f2a50d6446b05764 (patch)
tree5cd8cf31b6f9ec2e86d1caea13943ae73b71b032 /install/update.php
parent6715c400be1c13dde04294e39de12667421b0382 (diff)
parente091d30ca4d057e810864b1ba2351b9c050ad548 (diff)
downloadvolse-hubzilla-e31600f24f45eca378759918f2a50d6446b05764.tar.gz
volse-hubzilla-e31600f24f45eca378759918f2a50d6446b05764.tar.bz2
volse-hubzilla-e31600f24f45eca378759918f2a50d6446b05764.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php27
1 files changed, 26 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index ad21d9b45..48cb15c03 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1003 );
+define( 'UPDATE_VERSION' , 1005 );
/**
*
@@ -74,3 +74,28 @@ function update_r1002() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+
+function update_r1003() {
+ $r = q("ALTER TABLE `xchan` ADD `xchan_flags` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `xchan_network` ,
+ADD INDEX ( `xchan_flags` ) ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+
+function update_r1004() {
+ $r = q("CREATE TABLE if not exists `site` (
+`site_url` CHAR( 255 ) NOT NULL ,
+`site_flags` INT NOT NULL DEFAULT '0',
+`site_update` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
+`site_directory` CHAR( 255 ) NOT NULL DEFAULT '',
+PRIMARY KEY ( `site_url` )
+) ENGINE = MYISAM ");
+
+ $r2 = q("alter table site add index (site_flags), add index (site_update), add index (site_directory) ");
+
+ if($r && $r2)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+} \ No newline at end of file