dbtry("ALTER TABLE users ADD COLUMN external_account TEXT DEFAULT NULL AFTER clubstation"); } public function down() { $this->dbtry("ALTER TABLE users DROP COLUMN external_account"); } function dbtry($what) { try { $this->db->query($what); } catch (Exception $e) { log_message("error", "Something gone wrong while altering users table. Executing: " . $this->db->last_query()); } } }