Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed May 23, 2023
1 parent 816f0a5 commit ad8d497
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mine/Command/InstallProjectCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,9 @@ protected function initUserData()
Db::table('system_user')->truncate();
Db::table('system_role')->truncate();
Db::table('system_user_role')->truncate();
Db::table('system_user_dept')->truncate();
if (\Hyperf\Database\Schema\Schema::hasTable('system_user_dept')) {
Db::table('system_user_dept')->truncate();
}

// 创建超级管理员
Db::table("system_user")->insert([
Expand Down

0 comments on commit ad8d497

Please sign in to comment.