diff options
author | Thomas Willingham <founder@kakste.com> | 2013-08-14 20:44:17 +0100 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-08-14 20:44:17 +0100 |
commit | a0dfd44f9178796eaf55e4a2ab0194c12e7dfd21 (patch) | |
tree | 31a43380cbe93e28f27c69a7d676fe6bfafbb0f4 /install/update.php | |
parent | 94335f237fdadd93b86b271526c25c2a77de9c40 (diff) | |
parent | de4e4c5ebd1ab746432b21d122b5f0cfb70a9bdd (diff) | |
download | volse-hubzilla-a0dfd44f9178796eaf55e4a2ab0194c12e7dfd21.tar.gz volse-hubzilla-a0dfd44f9178796eaf55e4a2ab0194c12e7dfd21.tar.bz2 volse-hubzilla-a0dfd44f9178796eaf55e4a2ab0194c12e7dfd21.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index c09bc9d64..c97b5619f 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1058 ); +define( 'UPDATE_VERSION' , 1059 ); /** * @@ -670,3 +670,15 @@ function update_r1057() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1058() { + $r1 = q("ALTER TABLE `menu` ADD `menu_name` CHAR( 255 ) NOT NULL DEFAULT '' AFTER `menu_channel_id` , +ADD INDEX ( `menu_name` ) "); + + $r2 = q("ALTER TABLE `menu_item` ADD `mitem_flags` INT NOT NULL DEFAULT '0' AFTER `mitem_desc` , +ADD INDEX ( `mitem_flags` ) "); + + if($r1 && $r2) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |