WIP 2025-01-09 ConstructionConsent
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class ConstructionConsentOwnerRenameCols extends AbstractMigration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
if($this->getEnvironment() == "thetool") {
|
||||
$cco = $this->table("ConstructionConsentOwner");
|
||||
$cco->renameColumn("owner_name", "name");
|
||||
$cco->renameColumn("owner_street", "street");
|
||||
$cco->renameColumn("owner_zip", "zip");
|
||||
$cco->renameColumn("owner_city", "city");
|
||||
$cco->renameColumn("owner_country", "country");
|
||||
$cco->renameColumn("owner_phone", "phone");
|
||||
$cco->renameColumn("owner_fax", "fax");
|
||||
$cco->renameColumn("owner_email", "email");
|
||||
$cco->update();
|
||||
}
|
||||
|
||||
if($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
if($this->getEnvironment() == "thetool") {
|
||||
|
||||
}
|
||||
|
||||
if($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user