bookmark permissions

This commit is contained in:
friendica
2014-02-04 00:52:34 -08:00
parent 1572403e98
commit d8f16442a1
8 changed files with 25 additions and 4 deletions

View File

@@ -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;

View File

@@ -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;
}