ConstructionConsent: Added contact type Owner
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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") {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user