issue 2366, Delete a module when delete menu

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11229 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-09-13 08:26:03 +00:00
parent 99e7e392ef
commit 3fe93908c5
3 changed files with 88 additions and 8 deletions

View file

@ -30,6 +30,11 @@
// 2012. 02. 01 title index check
if(!$oDB->isIndexExists("menu", "idx_title")) return true;
if(!$oDB->isColumnExists('menu_item', 'is_shortcut'))
{
return TRUE;
}
return false;
}
@ -49,6 +54,11 @@
$oDB->addIndex('menu', 'idx_title', array('title'));
}
if(!$oDB->isColumnExists('menu_item', 'is_shortcut'))
{
$oDB->addColumn('menu_item', 'is_shortcut', 'char', 1, 'N');
}
return new Object(0, 'success_updated');
}