From ccad78182236b9f51b56eb8ab9f26e7b533bf75c Mon Sep 17 00:00:00 2001 From: Spitzer Daniel Date: Thu, 28 Mar 2024 16:39:10 +0100 Subject: [PATCH 1/2] 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") { + + } + } +} From 88fad5df96b795aa2e2c88842d5f9829e106e1fb Mon Sep 17 00:00:00 2001 From: Spitzer Daniel Date: Thu, 28 Mar 2024 16:40:31 +0100 Subject: [PATCH 2/2] Zeiterfassungs Update * Verrechnung Anpassungen NLZ und Aktuelle Gutstunden --- ...240328153550_timerecording_car_add_field_initialapproval.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrations/20240328153550_timerecording_car_add_field_initialapproval.php b/db/migrations/20240328153550_timerecording_car_add_field_initialapproval.php index a03d00a9a..fbf96264f 100644 --- a/db/migrations/20240328153550_timerecording_car_add_field_initialapproval.php +++ b/db/migrations/20240328153550_timerecording_car_add_field_initialapproval.php @@ -21,7 +21,7 @@ final class TimerecordingCarAddFieldInitialapproval extends AbstractMigration public function down(): void { if($this->getEnvironment() == "thetool") { - $this->table("first_approval")->removeColumn("initial_approval")->save(); + $this->table("TimerecordingCar")->removeColumn("initial_approval")->save(); } if($this->getEnvironment() == "addressdb") {