Zeiterfassungs Billing Update/Devices Parents

This commit is contained in:
Spitzer Daniel
2024-04-16 15:14:36 +02:00
parent 9d5be184a2
commit 81251bf4dd
8 changed files with 147 additions and 1 deletions
@@ -0,0 +1,34 @@
<?php
use Phinx\Migration\AbstractMigration;
final class FiberPlanDispatchersleeve extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("FiberPlanDispatchersleeve", ["signed" => true]);
$table->addColumn("fiberPlanDispatcher_id", "integer", ["null" => false]);
$table->addColumn("name", "text", ["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("FiberPlanDispatchersleeve")->drop()->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
}