diff options
author | friendica <info@friendica.com> | 2014-07-17 20:54:30 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-07-17 20:54:30 -0700 |
commit | b19176169cd93e7aa305296a85e28c8c1c68352b (patch) | |
tree | e3e6bb8f78d47d34310ee015a4447612643c2039 /install | |
parent | 0cb81714d80e3d51dc4939664425b7d1978b5d06 (diff) | |
download | volse-hubzilla-b19176169cd93e7aa305296a85e28c8c1c68352b.tar.gz volse-hubzilla-b19176169cd93e7aa305296a85e28c8c1c68352b.tar.bz2 volse-hubzilla-b19176169cd93e7aa305296a85e28c8c1c68352b.zip |
provide a specific permission for liking profiles (reuse the obsolete bookmark permission), also remove the unused 'unconnected contacts' view for now.
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 4 | ||||
-rw-r--r-- | install/update.php | 14 |
2 files changed, 14 insertions, 4 deletions
diff --git a/install/database.sql b/install/database.sql index e2b814067..c0440c035 100644 --- a/install/database.sql +++ b/install/database.sql @@ -204,7 +204,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', + `channel_w_like` 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`), @@ -239,7 +239,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_w_like` (`channel_w_like`), KEY `channel_dirdate` (`channel_dirdate`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; diff --git a/install/update.php b/install/update.php index 6600808a6..5bc5c9aa3 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1117 ); +define( 'UPDATE_VERSION' , 1118 ); /** * @@ -1303,4 +1303,14 @@ function update_r1115() { function update_r1116() { @os_mkdir('store/[data]/smarty3',STORAGE_DEFAULT_PERMISSIONS,true); return UPDATE_SUCCESS; -}
\ No newline at end of file +} + +function update_r1117() { + $r = q("ALTER TABLE `channel` CHANGE `channel_a_bookmark` `channel_w_like` INT( 10 ) UNSIGNED NOT NULL DEFAULT '128', +DROP INDEX `channel_a_bookmark` , ADD INDEX `channel_w_like` ( `channel_w_like` ) "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; + +} + |