mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 优化目录初始数据
This commit is contained in:
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;');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user