change code in migration and listener
This commit is contained in:
@@ -14,9 +14,11 @@ return new class extends Migration
|
||||
Schema::table('missions', function (Blueprint $table) {
|
||||
$table->bigInteger('mission_duration')->nullable();
|
||||
$table->bigInteger('in_area_duration')->nullable();
|
||||
$table->timestamps('first_enter')->nullable();
|
||||
$table->timestamps('last_exit')->nullable();
|
||||
$table->timestamp('first_enter')->nullable();
|
||||
$table->timestamp('last_exit')->nullable();
|
||||
$table->integer('point_number_sent')->nullable();
|
||||
$table->smallInteger('fms_result_code')->nullable();
|
||||
$table->string('fms_result_message')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -26,7 +28,11 @@ return new class extends Migration
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('missions', function (Blueprint $table) {
|
||||
$table->dropColumn(['mission_duration', 'in_area_duration', 'first_enter', 'last_exit', 'point_number_sent']);
|
||||
$table->dropColumn([
|
||||
'mission_duration', 'in_area_duration',
|
||||
'first_enter', 'last_exit', 'point_number_sent',
|
||||
'fms_result_code', 'fms_result_message',
|
||||
]);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user