added new features

This commit is contained in:
Luca Haid
2025-03-25 13:49:16 +01:00
parent c94d7de181
commit af6a4e02f5
7 changed files with 199 additions and 33 deletions
@@ -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();
}
}
}