aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-10 13:44:54 -0800
committerfriendica <info@friendica.com>2012-12-10 13:44:54 -0800
commitb0970850d4e3facac26debe54f34edc21bca1ff7 (patch)
tree295b1ecee96d1e641c842923a39f553e2ed802c5 /install/update.php
parentc066793554cf5a779b791df8a9fe93461f1598a4 (diff)
downloadvolse-hubzilla-b0970850d4e3facac26debe54f34edc21bca1ff7.tar.gz
volse-hubzilla-b0970850d4e3facac26debe54f34edc21bca1ff7.tar.bz2
volse-hubzilla-b0970850d4e3facac26debe54f34edc21bca1ff7.zip
Allow forum/account delegation by anybody? On any site? But of course...
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/install/update.php b/install/update.php
index cb3396b19..edd4701a1 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1000 );
+define( 'UPDATE_VERSION' , 1001 );
/**
*
@@ -35,5 +35,11 @@ define( 'UPDATE_VERSION' , 1000 );
*
*/
-// function update_r1000()
+function update_r1000() {
+ $r = q("ALTER TABLE `channel` ADD `channel_a_delegate` TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '0', ADD INDEX ( `channel_a_delegate` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+