From 9c276ed8c390ce5434e32e6962baaa9f616df5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Wed, 4 Feb 2026 22:53:02 +0900 Subject: [PATCH] =?UTF-8?q?fix:=EA=B8=B0=EC=A1=B4=20=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=20=EC=B6=A9=EB=8F=8C=20=EB=B0=A9=EC=A7=80=EB=A5=BC=20?= =?UTF-8?q?=EC=9C=84=ED=95=9C=20hasTable=20=EC=B2=B4=ED=81=AC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(sales=5Frecords,=20purchases,=20subscriptions)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.5 --- .../2026_02_04_230004_create_sales_records_table.php | 3 +++ .../migrations/2026_02_04_230005_create_purchases_table.php | 3 +++ .../2026_02_04_230008_create_subscriptions_table.php | 3 +++ 3 files changed, 9 insertions(+) diff --git a/database/migrations/2026_02_04_230004_create_sales_records_table.php b/database/migrations/2026_02_04_230004_create_sales_records_table.php index b17c6f6..a1cea1f 100644 --- a/database/migrations/2026_02_04_230004_create_sales_records_table.php +++ b/database/migrations/2026_02_04_230004_create_sales_records_table.php @@ -7,6 +7,9 @@ return new class extends Migration { public function up(): void { + if (Schema::hasTable('sales_records')) { + return; + } Schema::create('sales_records', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('tenant_id'); diff --git a/database/migrations/2026_02_04_230005_create_purchases_table.php b/database/migrations/2026_02_04_230005_create_purchases_table.php index c2d6664..b767c99 100644 --- a/database/migrations/2026_02_04_230005_create_purchases_table.php +++ b/database/migrations/2026_02_04_230005_create_purchases_table.php @@ -7,6 +7,9 @@ return new class extends Migration { public function up(): void { + if (Schema::hasTable('purchases')) { + return; + } Schema::create('purchases', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('tenant_id'); diff --git a/database/migrations/2026_02_04_230008_create_subscriptions_table.php b/database/migrations/2026_02_04_230008_create_subscriptions_table.php index 3df7905..6d37ef2 100644 --- a/database/migrations/2026_02_04_230008_create_subscriptions_table.php +++ b/database/migrations/2026_02_04_230008_create_subscriptions_table.php @@ -7,6 +7,9 @@ return new class extends Migration { public function up(): void { + if (Schema::hasTable('subscriptions')) { + return; + } Schema::create('subscriptions', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('tenant_id');