Files
thetool/db/migrations/20250304145421_rimo_workorder_add_remarks.php
T

34 lines
821 B
PHP

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