Zeiterfassung Update

* Feature Update Urklaubsaufbuchung/Minderung im BMD Import
This commit is contained in:
Daniel Spitzer
2024-06-09 18:08:20 +02:00
parent a4fbcad6fc
commit 2d70624bd8
4 changed files with 48 additions and 0 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingBillingEmployeeAddFieldHolidays extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingBillingEmployee", ["signed" => true]);
$table->addColumn("holidays", "integer", ["null" => false, "default" => 0, "after" => "nlz_detail"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("TimerecordingBillingEmployee")->removeColumn("holidays")->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}