diff options
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; +} |