aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-15 12:57:12 -0800
committerfriendica <info@friendica.com>2014-01-15 12:57:12 -0800
commit762a5432494711bf481943a0dee72cf65f7a04bb (patch)
treeb32c1dfb66ef517131e991243ee44dc2e9a14929 /install
parente4217dc1417438a3dc8f745efec8bc122b991a03 (diff)
downloadvolse-hubzilla-762a5432494711bf481943a0dee72cf65f7a04bb.tar.gz
volse-hubzilla-762a5432494711bf481943a0dee72cf65f7a04bb.tar.bz2
volse-hubzilla-762a5432494711bf481943a0dee72cf65f7a04bb.zip
allow menus to have special roles
Diffstat (limited to 'install')
-rw-r--r--install/database.sql4
-rw-r--r--install/update.php10
2 files changed, 12 insertions, 2 deletions
diff --git a/install/database.sql b/install/database.sql
index d28128795..597124566 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -536,9 +536,11 @@ CREATE TABLE IF NOT EXISTS `menu` (
`menu_channel_id` int(10) unsigned NOT NULL DEFAULT '0',
`menu_name` char(255) NOT NULL DEFAULT '',
`menu_desc` char(255) NOT NULL DEFAULT '',
+ `menu_flags` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`menu_id`),
KEY `menu_channel_id` (`menu_channel_id`),
- KEY `menu_name` (`menu_name`)
+ KEY `menu_name` (`menu_name`),
+ KEY `menu_flags` (`menu_flags`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `menu_item` (
diff --git a/install/update.php b/install/update.php
index 3e04df51b..022d7f0dc 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1090 );
+define( 'UPDATE_VERSION' , 1091 );
/**
*
@@ -986,3 +986,11 @@ ADD INDEX ( `creator` ) ");
}
+function update_r1090() {
+ $r = q("ALTER TABLE `menu` ADD `menu_flags` INT NOT NULL DEFAULT '0',
+ADD INDEX ( `menu_flags` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+