aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-04 00:52:34 -0800
committerfriendica <info@friendica.com>2014-02-04 00:52:34 -0800
commitd8f16442a1ca7d0be18dedd52c0f4eb339ba19b6 (patch)
tree60cff2d8d21741cbfc9093a467238af44c45c282 /install
parent1572403e980b013e211de1d317631551dfe5f304 (diff)
downloadvolse-hubzilla-d8f16442a1ca7d0be18dedd52c0f4eb339ba19b6.tar.gz
volse-hubzilla-d8f16442a1ca7d0be18dedd52c0f4eb339ba19b6.tar.bz2
volse-hubzilla-d8f16442a1ca7d0be18dedd52c0f4eb339ba19b6.zip
bookmark permissions
Diffstat (limited to 'install')
-rw-r--r--install/database.sql2
-rw-r--r--install/update.php10
2 files changed, 11 insertions, 1 deletions
diff --git a/install/database.sql b/install/database.sql
index c89e4cef2..86531a415 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -177,6 +177,7 @@ CREATE TABLE IF NOT EXISTS `channel` (
`channel_r_pages` int(10) unsigned NOT NULL DEFAULT '128',
`channel_w_pages` int(10) unsigned NOT NULL DEFAULT '128',
`channel_a_republish` int(10) unsigned NOT NULL DEFAULT '128',
+ `channel_a_bookmark` int(10) unsigned NOT NULL DEFAULT '128',
PRIMARY KEY (`channel_id`),
UNIQUE KEY `channel_address_unique` (`channel_address`),
KEY `channel_account_id` (`channel_account_id`),
@@ -211,6 +212,7 @@ CREATE TABLE IF NOT EXISTS `channel` (
KEY `channel_w_pages` (`channel_w_pages`),
KEY `channel_deleted` (`channel_deleted`),
KEY `channel_a_republish` (`channel_a_republish`),
+ KEY `channel_a_bookmark` (`channel_a_bookmark`),
KEY `channel_dirdate` (`channel_dirdate`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
diff --git a/install/update.php b/install/update.php
index e8b6d37f6..93442a81f 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1095 );
+define( 'UPDATE_VERSION' , 1096 );
/**
*
@@ -1069,3 +1069,11 @@ ADD INDEX ( `cr_expire` )");
return UPDATE_FAILED;
}
+function update_r1095() {
+ $r = q("ALTER TABLE `channel` ADD `channel_a_bookmark` INT UNSIGNED NOT NULL DEFAULT '128',
+ADD INDEX ( `channel_a_bookmark` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+