add column to province table

This commit is contained in:
2025-07-23 09:03:16 +03:30
parent ca89fe0371
commit bc31ce9e37
2 changed files with 6 additions and 6 deletions

View File

@@ -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();
});
}

View File

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