Files
thetool/db/migrations/20250415152529_workflowitem_add_style.php
2025-04-15 18:52:32 +02:00

34 lines
846 B
PHP

<?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") {
}
}
}