Files
thetool/db/migrations/20240716164608_contract_link_change_changeaction_to_varchar.php
2024-07-16 22:50:49 +02:00

32 lines
736 B
PHP

<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class ContractLinkChangeChangeactionToVarchar extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("ContractLink");
$table->changeColumn("change_action", "string", ["null" => true, "default" => null, "limit" => 64]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}