add column to province table
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user