Merge branch 'spidev' into 'master'

Zeiterfassung

See merge request fronk/thetool!1003
This commit is contained in:
Daniel Spitzer
2025-02-07 11:29:39 +00:00
6 changed files with 603 additions and 2 deletions
@@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingEmployeeWorkingHourHistory extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingEmployeeWorkingHourHistory", ["signed" => true]);
$table->addColumn("user_id", "integer", ["null" => false]);
$table->addColumn("enddate", "integer", ["null" => false, "limit" => 64]);
$table->addColumn("workinghours", "string", ["null" => true]);
$table->addColumn("create_by", "integer", ["null" => false]);
$table->addColumn("edit_by", "integer", ["null" => false]);
$table->addColumn("create", "integer", ["null" => false]);
$table->addColumn("edit", "integer", ["null" => false]);
$table->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("TimerecordingEmployeeWorkingHourHistory")->drop()->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}