added new features
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user