Merge branch 'ConstructionConsent/add-faulty-owner-view' into 'master'
added faulty owner view See merge request fronk/thetool!1373
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user