Zeiterfassungs Update

* Verrechnung Anpassungen NLZ und Aktuelle Gutstunden
This commit is contained in:
Spitzer Daniel
2024-03-28 16:39:10 +01:00
parent d4f19deddb
commit ccad781822

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingCarAddFieldInitialapproval extends AbstractMigration
{
public function up(): void
{
if($this->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") {
}
}
}