Skip to content

Commit

Permalink
docs: 防止迁移初始化存在migrate表时执行迁移报错
Browse files Browse the repository at this point in the history
  • Loading branch information
gua committed Nov 17, 2023
1 parent a2a39e1 commit 80d7379
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion database/seeders/OriginV2bMigrationsTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ class OriginV2bMigrationsTableSeeder extends Seeder
public function run()
{

\Artisan::call("migrate:install");
try{
\Artisan::call("migrate:install");
}catch(\Exception $e){

}
\DB::table('migrations')->insert(array (
0 =>
array (
Expand Down

0 comments on commit 80d7379

Please sign in to comment.