aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Update/_1058.php
blob: 8e3ffdd6a00aac5ed0319f53b5b9b9a78e20abf8 (plain) (tree)


















                                                                                                             
<?php

namespace Zotlabs\Update;

class _1058 {
function run() {
	$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;
}


}