getEnvironment() == "thetool") { $timerecording = $this->table("Timerecording", ["signed" => true]); $timerecording->addColumn("user_id", "integer", ["null" => false])->addIndex(["user_id"]); $timerecording->addColumn("start", "integer", ["null" => true]); $timerecording->addColumn("end", "integer", ["null" => true]); $timerecording->addColumn("timerecordingCategory_id", "integer", ["null" => false]); $timerecording->addColumn("commend", "text", ["null" => true]); $timerecording->addColumn("approved", "integer", ["null" => false, "default" => "0"]); $timerecording->addColumn("completed", "integer", ["null" => false, "default" => "0"]); $timerecording->addColumn("create_by", "integer", ["null" => false]); $timerecording->addColumn("edit_by", "integer", ["null" => false]); $timerecording->addColumn("create", "integer", ["null" => false]); $timerecording->addColumn("edit", "integer", ["null" => false]); $timerecording->save(); } if ($this->getEnvironment() == "addressdb") { } } public function down(): void { if ($this->getEnvironment() == "thetool") { $this->table("Timerecording")->drop()->save(); } if ($this->getEnvironment() == "addressdb") { } } }