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');