change some part of code
This commit is contained in:
@@ -11,13 +11,13 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('report_mission_and_machines', function (Blueprint $table) {
|
||||
Schema::create('assignment_fails', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('mission_id')->index()->nullable();
|
||||
$table->string('machine_code')->index();
|
||||
$table->date('request_date')->index();
|
||||
$table->foreignId('mission_id')->constrained('missions')->nullable();
|
||||
$table->string('machine_code')->nullable();
|
||||
$table->date('request_date')->nullable();
|
||||
$table->string('type')->nullable();
|
||||
$table->unsignedInteger('mileage')->nullable();
|
||||
$table->bigInteger('mileage')->nullable();
|
||||
$table->dateTime('exit_time')->nullable();
|
||||
$table->dateTime('enter_time')->nullable();
|
||||
$table->timestamps();
|
||||
@@ -30,6 +30,6 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('report_mission_and_machines');
|
||||
Schema::dropIfExists('assignment_fails');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user