Zeiterfassung

* Personaladmistration um Feld SV-Nummer erweitert
This commit is contained in:
Daniel Spitzer
2025-08-05 15:56:48 +02:00
parent b3030884c5
commit d4b405627c
6 changed files with 58 additions and 8 deletions

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingEmployeeAddInsuranceNumber extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingEmployee", ["signed" => true]);
$table->addColumn("insurance_number", "string", ["null" => true, "after" => "birthday"]);
$table->update();
}
if ($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$this->table("TimerecordingEmployee")->removeColumn("only_admin")->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
}