getEnvironment() == "thetool") { $table = $this->table('RaspberryDisplay'); $table->addColumn('display_label', 'string', ['limit' => 255]) ->addColumn('hostname', 'string', ['limit' => 255]) ->addColumn('ip_address', 'string', ['limit' => 15]) ->addColumn('display_url', 'string', ['limit' => 255]) ->addColumn('auto_refresh_enabled', 'boolean', ['default' => false]) ->addColumn('margin_hot_fix_enabled', 'boolean', ['default' => false]) ->addColumn('custom_style', 'string', ['limit' => 255, 'null' => true]) ->addColumn('create', 'integer', ['null' => true]) ->addColumn('edit', 'integer', ['null' => true]) ->addColumn('create_by', 'integer', ['null' => true]) ->addColumn('edit_by', 'integer', ['null' => true]) ->create(); } if($this->getEnvironment() == "addressdb") { } } public function down(): void { if($this->getEnvironment() == "thetool") { $this->table('RaspberryDisplay')->drop(); } if($this->getEnvironment() == "addressdb") { } } }