ConstructionConsent: Added contact type Owner

This commit is contained in:
Frank Schubert
2025-02-26 15:38:54 +01:00
parent a7a4f05f1f
commit e50d1973c7
2 changed files with 32 additions and 0 deletions

View File

@@ -600,6 +600,7 @@ $pagination_entity_name = "Adressen";
<option value="property_manager">Hausverwaltung</option>
<option value="electrician">Elektriker</option>
<option value="contact">Ansprechpartner</option>
<option value="owner">Eigentümer</option>
<option value="other">Sonstige</option>
</select>
</div>

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class ConstructionConsentContactAddOwner extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("ConstructionConsentContact");
$table->changeColumn("type", "enum", ["null" => false, "values" => ["contact", "property_manager", "electrician", "other", "owner"]]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}