Merge branch 'spidev' into 'master'

Zeiterfassung Anpassungen Jobrad Feature

See merge request fronk/thetool!488
This commit is contained in:
Daniel Spitzer
2024-07-14 11:16:33 +00:00
5 changed files with 40 additions and 6 deletions

View File

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