diff --git a/database/migrations/2025_04_28_101821_create_provinces_table.php b/database/migrations/2025_04_28_101821_create_provinces_table.php index b2a5d64..1c2a32b 100644 --- a/database/migrations/2025_04_28_101821_create_provinces_table.php +++ b/database/migrations/2025_04_28_101821_create_provinces_table.php @@ -16,8 +16,6 @@ return new class extends Migration $table->string('name'); $table->double('lat'); $table->double('lon'); - $table->string('ip'); - $table->string('camera_ip'); $table->timestamps(); }); } diff --git a/database/migrations/2025_07_21_094121_create_expert_performances_table.php b/database/migrations/2025_07_21_094121_add_column_to_provinces_table.php similarity index 57% rename from database/migrations/2025_07_21_094121_create_expert_performances_table.php rename to database/migrations/2025_07_21_094121_add_column_to_provinces_table.php index 2a0b866..3181646 100644 --- a/database/migrations/2025_07_21_094121_create_expert_performances_table.php +++ b/database/migrations/2025_07_21_094121_add_column_to_provinces_table.php @@ -11,9 +11,9 @@ return new class extends Migration */ public function up(): void { - Schema::create('expert_performances', function (Blueprint $table) { - $table->id(); - $table->timestamps(); + Schema::create('provinces', function (Blueprint $table) { + $table->string('ip'); + $table->string('camera_ip'); }); } @@ -22,6 +22,8 @@ return new class extends Migration */ public function down(): void { - Schema::dropIfExists('expert_performances'); + Schema::table('provinces', function (Blueprint $table) { + $table->dropColumn(['ip', 'camera_ip']); + }); } };