getEnvironment() == 'addressdb') { $table = $this->table('Wohneinheit'); if (!$table->hasColumn('contact')) { $table->addColumn('contact', 'text', [ 'null' => true, 'default' => null, 'after' => 'note' ]) ->save(); } } } public function down(): void { if ($this->getEnvironment() == 'addressdb') { $table = $this->table('Wohneinheit'); if ($table->hasColumn('contact')) { $table->removeColumn('contact') ->save(); } } } }