fix:기존 테이블 충돌 방지를 위한 hasTable 체크 추가 (sales_records, purchases, subscriptions)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-04 22:53:02 +09:00
parent 343d7f6256
commit 9c276ed8c3
3 changed files with 9 additions and 0 deletions

View File

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