Lauout tweaks for Pipe- and Linework

This commit is contained in:
Frank Schubert
2025-04-15 18:52:32 +02:00
parent e2351d1f3d
commit b90f4a2454
12 changed files with 69 additions and 15 deletions
@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class WorkflowitemAddStyle extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Workflowitem");
$table->addColumn("style", "string", ["limit" => 255, "default" => null, "null" => true, "after" => "placeholder"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Workflowitem");
$table->removeColumn("style");
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
}