protected static function rename_column($table_name, $old_column_name, $new_column_name, $field_attributes) { $result = dbquery("ALTER TABLE " . $table_name . " CHANGE " . $old_column_name . " " . $new_column_name . " " . $field_attributes . ""); if (!$result) { \defender::stop(); addNotice("danger", "Unable to alter " . $old_column_name . " to " . $new_column_name); } }