diff --git a/db/migrations/20240328153550_timerecording_car_add_field_initialapproval.php b/db/migrations/20240328153550_timerecording_car_add_field_initialapproval.php new file mode 100644 index 000000000..fbf96264f --- /dev/null +++ b/db/migrations/20240328153550_timerecording_car_add_field_initialapproval.php @@ -0,0 +1,31 @@ +getEnvironment() == "thetool") { + $table = $this->table("TimerecordingCar", ["signed" => true]); + $table->addColumn("first_approval", "integer", ["null" => true, "default" => NULL, "after" => "initial_approval"]); + $table->update(); + } + + if($this->getEnvironment() == "addressdb") { + + } + } + + public function down(): void + { + if($this->getEnvironment() == "thetool") { + $this->table("TimerecordingCar")->removeColumn("initial_approval")->save(); + } + + if($this->getEnvironment() == "addressdb") { + + } + } +}