diff --git a/db/migrations/20250516140735_adb_wohneinheit_add_rimo_deleted.php b/db/migrations/20250516140735_adb_wohneinheit_add_rimo_deleted.php new file mode 100644 index 000000000..09c009451 --- /dev/null +++ b/db/migrations/20250516140735_adb_wohneinheit_add_rimo_deleted.php @@ -0,0 +1,31 @@ +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(); + } + } +}