Added ADB Gwrgst table and auto EZ in ConstructionConsent
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class AddressdbCreateGwrgst extends AbstractMigration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
if($this->getEnvironment() == "thetool") {
|
||||
|
||||
}
|
||||
|
||||
if($this->getEnvironment() == "addressdb") {
|
||||
$table = $this->table('Gwrgst');
|
||||
$table->addColumn("kgnr", "integer", ["null" => false])
|
||||
->addColumn("gstnr", "string", ["limit" => 255, "null" => true, "default" => null])
|
||||
->addColumn("g", "string", ["limit" => 255, "null" => true, "default" => null])
|
||||
->addColumn("ba", "string", ["limit" => 255, "null" => true, "default" => null])
|
||||
->addColumn("nu", "string", ["limit" => 255, "null" => true, "default" => null])
|
||||
->addColumn("tind", "string", ["limit" => 255, "null" => true, "default" => null])
|
||||
->addColumn("ind", "string", ["limit" => 255, "null" => true, "default" => null])
|
||||
->addColumn("flaeche", "string", ["limit" => 255, "null" => true, "default" => null])
|
||||
->addColumn("emz", "string", ["limit" => 255, "null" => true, "default" => null])
|
||||
->addColumn("gfn", "string", ["limit" => 255, "null" => true, "default" => null])
|
||||
->addColumn("gft", "string", ["limit" => 255, "null" => true, "default" => null])
|
||||
->addColumn("kgez", "string", ["limit" => 255, "null" => true, "default" => null])
|
||||
->addColumn("ez", "string", ["limit" => 255, "null" => true, "default" => null])
|
||||
|
||||
->addColumn("create", "integer", ["null" => false])
|
||||
->addColumn("edit", "integer", ["null" => false])
|
||||
|
||||
->create();
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
if($this->getEnvironment() == "thetool") {
|
||||
|
||||
}
|
||||
|
||||
if($this->getEnvironment() == "addressdb") {
|
||||
$this->table("Gwrgst")->drop()->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user