aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-14 16:17:57 -0800
committerfriendica <info@friendica.com>2013-01-14 16:17:57 -0800
commit610dc2823aa12ace2d9d18dda48b93dc4aa63dce (patch)
treeeeac01f0229fc630a09c89c8bf543473b1d6914b /install/update.php
parentc450049a0ad0e0c38c34c15da1b105fadbba113e (diff)
downloadvolse-hubzilla-610dc2823aa12ace2d9d18dda48b93dc4aa63dce.tar.gz
volse-hubzilla-610dc2823aa12ace2d9d18dda48b93dc4aa63dce.tar.bz2
volse-hubzilla-610dc2823aa12ace2d9d18dda48b93dc4aa63dce.zip
read/write "pages" permissions and fiddly bits - per Thomas
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 cff3115a2..a43867ea6 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1015 );
+define( 'UPDATE_VERSION' , 1016 );
/**
*
@@ -219,3 +219,13 @@ function update_r1014() {
return UPDATE_FAILED;
}
+function update_r1015() {
+ $r = q("ALTER TABLE `channel` ADD `channel_r_pages` INT UNSIGNED NOT NULL DEFAULT '128',
+ADD `channel_w_pages` INT UNSIGNED NOT NULL DEFAULT '128'");
+
+ $r2 = q("ALTER TABLE `channel` ADD INDEX ( `channel_r_pages` ) , ADD INDEX ( `channel_w_pages` ) ");
+
+ if($r && $r2)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}