Skip to content

Commit c3d55b0

Browse files
committed
Update shifts migration & make start_time nullable
1 parent fbef83c commit c3d55b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/2022_11_25_045551_create_shifts_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function up()
1919
$table->foreignId('rota_id')->constrained()->cascadeOnDelete();
2020
$table->foreignId('driver_id')->constrained()->cascadeOnDelete();
2121
$table->foreignId('van_id')->constrained()->cascadeOnDelete();
22-
$table->timestamp('start_time');
22+
$table->timestamp('start_time')->nullable();
2323
$table->timestamp('end_time')->nullable();
2424
$table->string('description');
2525
$table->timestamp('clock_in_time')->nullable();

0 commit comments

Comments
 (0)