modified 优化安装脚本

This commit is contained in:
zhaoxiang 2020-06-15 11:22:28 +08:00
parent c5c480adba
commit 04f8bdc175
2 changed files with 1 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class UpdateAdminMenuData extends Migrator {
$this->execute('UPDATE `admin_menu` SET `fid` = 73, `show` = 0, `level` = 2, `log` = 0, `permission` = 0, `method` = 2 WHERE `id` = 1;');
$this->execute('UPDATE `admin_menu` SET `fid` = 73, `show` = 0, `level` = 2, `log` = 1, `permission` = 0, `method` = 1 WHERE `id` = 2;');
$this->execute('UPDATE `admin_menu` SET `fid` = 73, `show` = 0, `level` = 2, `log` = 1, `permission` = 1, `method` = 2 WHERE `id` = 67;');
$this->execute('UPDATE `admin_menu` SET `fid` = 73, `show` = 0, `level` = 2, `log` = 1, `permission` = 1, `method` = 1 WHERE `id` = 68;');
$this->execute('UPDATE `admin_menu` SET `fid` = 73, `show` = 0, `level` = 2, `log` = 1, `permission` = 1, `method` = 2 WHERE `id` = 68;');
$this->execute('UPDATE `admin_menu` SET `fid` = 73, `show` = 0, `level` = 2, `log` = 0, `permission` = 1, `method` = 1 WHERE `id` = 70;');
}
}

View File

@ -26,6 +26,5 @@ class ChangeMenuFid extends Migrator {
*/
public function up() {
$this->execute('UPDATE `admin_menu` SET `fid` = 30 WHERE `id` = 37 OR `id` = 38;');
$this->execute('UPDATE `admin_menu` SET `method` = 2 WHERE `id` = 68;');
}
}