Files
thetool/db/migrations/20240402075053_timerecording_billing.php
Spitzer Daniel acbdb7b2aa Zeiterfassungs Update
* neue Migration für Personaladministration (Aktive Verrechnung)
 * Verrechnung Anpassungen Black P.
 * superexpertEnabled Implementation Verrechnung/Personaladministration
 * Personaladministration (Aktive Verrechnung/Zeiterfassung Enddatum)
2024-04-04 18:05:16 +02:00

35 lines
1.0 KiB
PHP

<?php
use Phinx\Migration\AbstractMigration;
final class TimerecordingBilling extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingBilling", ["signed" => true]);
$table->addColumn("month", "string", ["null" => false]);
$table->addColumn("closetime", "integer", ["null" => false]);
$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("TimerecordingBilling")->drop()->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
}
?>