Merge branch 'spidev' into 'master'

Zeiterfassung Update

See merge request fronk/thetool!352
This commit is contained in:
Daniel Spitzer
2024-05-07 06:54:41 +00:00
4 changed files with 64 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingBillingEmployeeAddFieldsTransferBpa extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingBillingEmployee", ["signed" => true]);
$table->addColumn("transfer_bpahours", "integer", ["null" => false, "default" => 0, "after" => "transfer_overtime"]);
$table->update();
}
if ($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$this->table("TimerecordingBillingEmployee")->removeColumn("transfer_bpahours")->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
}