added faulty owner view

This commit is contained in:
Luca Haid
2025-05-20 13:44:55 +02:00
parent 90987baec0
commit 288727f465
9 changed files with 506 additions and 4 deletions
@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class ConstrConsOwnerAddCompany extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "addressdb") {
$ConstructionConsentOwner = $this->table("ConstructionConsentOwner");
$ConstructionConsentOwner->addColumn("company", "string", ["limit" => 255, "null" => true]);
$ConstructionConsentOwner->update();
}
}
public function down(): void
{
if($this->getEnvironment() == "addressdb") {
$ConstructionConsentOwner = $this->table("ConstructionConsentOwner");
$ConstructionConsentOwner->removeColumn("company");
$ConstructionConsentOwner->update();
}
}
}