From ccad78182236b9f51b56eb8ab9f26e7b533bf75c Mon Sep 17 00:00:00 2001 From: Spitzer Daniel Date: Thu, 28 Mar 2024 16:39:10 +0100 Subject: [PATCH] Zeiterfassungs Update * Verrechnung Anpassungen NLZ und Aktuelle Gutstunden --- ...ecording_car_add_field_initialapproval.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 db/migrations/20240328153550_timerecording_car_add_field_initialapproval.php 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..a03d00a9a --- /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("first_approval")->removeColumn("initial_approval")->save(); + } + + if($this->getEnvironment() == "addressdb") { + + } + } +}