1
0
mirror of https://gitee.com/apiadmin/ApiAdmin.git synced 2025-04-06 03:58:00 +08:00

modified 优化目录初始数据

This commit is contained in:
zhaoxiang 2020-03-26 14:16:07 +08:00
parent 1e5738ab09
commit a2e7ebffa6

@ -25,8 +25,11 @@ class UpdateAdminMenuData extends Migrator {
* with the Table class. * with the Table class.
*/ */
public function up() { public function up() {
$this->execute('UPDATE admin_menu SET show = 2 WHERE show = 0;'); $this->execute('UPDATE `admin_menu` SET `show` = 2 WHERE `show` = 0;');
$this->execute('UPDATE admin_menu SET show = 0 WHERE show = 1;'); $this->execute('UPDATE `admin_menu` SET `show` = 0 WHERE `show` = 1;');
$this->execute('UPDATE admin_menu SET show = 1 WHERE show = 2;'); $this->execute('UPDATE `admin_menu` SET `show` = 1 WHERE `show` = 2;');
$this->execute('UPDATE `admin_menu` SET `level` = 1 WHERE `fid` = 0;');
$this->execute('UPDATE `admin_menu` SET `level` = 3 WHERE `url` != "";');
$this->execute('UPDATE `admin_menu` SET `level` = 2 WHERE `level` = 0;');
} }
} }