* neue Migration für Personaladministration (Aktive Verrechnung) * Verrechnung Anpassungen Black P. * superexpertEnabled Implementation Verrechnung/Personaladministration * Personaladministration (Aktive Verrechnung/Zeiterfassung Enddatum)
48 lines
2.1 KiB
PHP
48 lines
2.1 KiB
PHP
<?php
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class TimerecordingBillingEmployee extends AbstractMigration
|
|
{
|
|
public function up(): void
|
|
{
|
|
if ($this->getEnvironment() == "thetool") {
|
|
$table = $this->table("TimerecordingBillingEmployee", ["signed" => true]);
|
|
|
|
$table->addColumn("timerecordingBilling_id", "integer", ["null" => false]);
|
|
$table->addColumn("timerecordingEmployee_id", "integer", ["null" => false]);
|
|
$table->addColumn("musthours", "integer", ["null" => false]);
|
|
$table->addColumn("ishours", "integer", ["null" => false]);
|
|
$table->addColumn("ishourssum", "integer", ["null" => false]);
|
|
$table->addColumn("plushours25", "integer", ["null" => false, "default" => "0"]);
|
|
$table->addColumn("overtime50", "integer", ["null" => false, "default" => "0"]);
|
|
$table->addColumn("overtime50free", "integer", ["null" => false, "default" => "0"]);
|
|
$table->addColumn("overtime100", "integer", ["null" => false, "default" => "0"]);
|
|
$table->addColumn("overtime100free", "integer", ["null" => false, "default" => "0"]);
|
|
$table->addColumn("homeoffice", "integer", ["null" => false, "default" => "0"]);
|
|
$table->addColumn("diet", "decimal", ["null" => false, "default" => "0", "precision" => 10, "scale" => 2]);
|
|
$table->addColumn("nlz", "text", ["null" => true]);
|
|
$table->addColumn("nlz_detail", "text", ["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("TimerecordingBillingEmployee")->drop()->save();
|
|
}
|
|
if ($this->getEnvironment() == "addressdb") {
|
|
}
|
|
}
|
|
}
|
|
|
|
?>
|