ConstructionConsent Changes

This commit is contained in:
Frank Schubert
2025-02-13 14:35:57 +01:00
parent 21ae4fe212
commit ea9e91e6ab
9 changed files with 313 additions and 159 deletions

View File

@@ -0,0 +1,35 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class ConstructionConsentOwnerAddCols extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("ConstructionConsentOwner");
$table->addColumn("title", "string", ["null" => true, "default" => null, "limit" => 255, "after" => "constructionconsent_id"]);
$table->addColumn("birthdate", "date", ["null" => true, "default" => null, "after" => "email"]);
$table->addColumn("phone2", "string", ["null" => true, "default" => null, "limit" => 255, "after" => "phone"]);
$table->addColumn("firstname", "string", ["null" => true, "default" => null, "limit" => 255, "after" => "title"]);
$table->renameColumn("name", "lastname");
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}