Added rimo_deleted field to Wohneinheit

This commit is contained in:
Frank Schubert
2025-05-16 21:59:18 +02:00
parent 1cd9587803
commit 11de49b970

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AdbWohneinheitAddRimoDeleted extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
$table = $this->table('Wohneinheit');
$table->addColumn("rimo_deleted", "integer", ["null" => false, "default" => 0, "length" => \Phinx\Db\Adapter\MysqlAdapter::INT_TINY, "after" => "rimo_op_state"]);
$table->update();
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
$this->table('Wohneinheit')->removeColumn("rimo_deleted")->save();
}
}
}