aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
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;
+}
+