added Rimoworkorder remark column

This commit is contained in:
Frank Schubert
2025-03-05 15:06:52 +01:00
parent e16efac79c
commit 6250a3baaa

View File

@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class RimoWorkorderAddRemarks extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("RimoWorkorder");
$table->addColumn("remarks", "text", ["null" => true, "after" => "rimo_team_name"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("RimoWorkorder");
$table->removeColumn("remarks");
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
}