24 lines
767 B
PHP
24 lines
767 B
PHP
<?php declare(strict_types = 1);
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class ConstrConsentAddApproveOverride extends AbstractMigration {
|
|
public function up(): void {
|
|
if ($this->getEnvironment() == "thetool") {
|
|
$ConstructionConsentTable = $this->table("ConstructionConsent");
|
|
$ConstructionConsentTable
|
|
->addColumn("approve_override", "tinyinteger", ["default" => 0])
|
|
->save();
|
|
}
|
|
}
|
|
|
|
public function down(): void {
|
|
if ($this->getEnvironment() == "thetool") {
|
|
$ConstructionConsentTable = $this->table("ConstructionConsent");
|
|
$ConstructionConsentTable
|
|
->removeColumn("approve_override")
|
|
->save();
|
|
}
|
|
}
|
|
}
|