From 2c035c7441f5ba7d8def6aef4db0681fa07002b9 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Tue, 13 Jun 2023 21:48:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A6=82=E6=9E=9C=E8=A1=A8=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=EF=BC=8C=E6=97=A0=E6=B3=95=E6=89=A7=E8=A1=8Cmigration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/Develop/Support/Generate/stubs/migration.stub | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/Develop/Support/Generate/stubs/migration.stub b/modules/Develop/Support/Generate/stubs/migration.stub index 3766219..8921824 100644 --- a/modules/Develop/Support/Generate/stubs/migration.stub +++ b/modules/Develop/Support/Generate/stubs/migration.stub @@ -13,6 +13,8 @@ return new class extends Migration */ public function up() { + if (Schema::hasTable('{table}')) { return; } + Schema::{method}('{table}', function (Blueprint $table) { {content} });