aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-22 03:33:12 -0800
committerfriendica <info@friendica.com>2012-12-22 03:33:12 -0800
commitf09b9f1e446ff005a19c451efccbd8b3806ef5f9 (patch)
tree2190b0ccfbb1075be7b0031f597fefdef3981688 /install/update.php
parent8d71fe91f67eeb501efd6fedd17992c12882daeb (diff)
downloadvolse-hubzilla-f09b9f1e446ff005a19c451efccbd8b3806ef5f9.tar.gz
volse-hubzilla-f09b9f1e446ff005a19c451efccbd8b3806ef5f9.tar.bz2
volse-hubzilla-f09b9f1e446ff005a19c451efccbd8b3806ef5f9.zip
add permission controls to "storage" objects such as attachments or other stored files
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/install/update.php b/install/update.php
index 791371ec1..bdd687fb3 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1007 );
+define( 'UPDATE_VERSION' , 1008 );
/**
*
@@ -142,4 +142,13 @@ function update_r1006() {
if($r && $r2)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
-} \ No newline at end of file
+}
+
+
+function update_r1007() {
+ $r = q("ALTER TABLE `channel` ADD `channel_r_storage` INT UNSIGNED NOT NULL DEFAULT '128', ADD `channel_w_storage` INT UNSIGNED NOT NULL DEFAULT '128', add index ( channel_r_storage ), add index ( channel_w_storage )");
+
+ if($r && $r2)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}