aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-25 01:22:51 -0800
committerfriendica <info@friendica.com>2013-12-25 01:22:51 -0800
commit5dee22c94d1ab366c88a7d3058867e70f5cfb827 (patch)
tree3db1dfb2498305153e3e5baf8e1da3a4d723c071 /install/update.php
parentb1ade138ff7fc47f2b70fb3fbf130127140b5271 (diff)
downloadvolse-hubzilla-5dee22c94d1ab366c88a7d3058867e70f5cfb827.tar.gz
volse-hubzilla-5dee22c94d1ab366c88a7d3058867e70f5cfb827.tar.bz2
volse-hubzilla-5dee22c94d1ab366c88a7d3058867e70f5cfb827.zip
db update for directory profiles - and fix broken database.sql from the sys_perms addition a couple days back
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index c731eab06..8e64413dc 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1087 );
+define( 'UPDATE_VERSION' , 1088 );
/**
*
@@ -957,3 +957,13 @@ ADD INDEX ( `account_level` )");
return UPDATE_FAILED;
}
+function update_r1087() {
+ $r = q("ALTER TABLE `xprof` ADD `xprof_about` TEXT NOT NULL DEFAULT '',
+ADD `xprof_homepage` CHAR( 255 ) NOT NULL DEFAULT '',
+ADD `xprof_hometown` CHAR( 255 ) NOT NULL DEFAULT '',
+ADD INDEX ( `xprof_hometown` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+