Future Checksetup Changes (First Heads-Up Attempt :-))

Max Kanat-Alexander mkanat at kerio.com
Fri Mar 11 09:27:01 UTC 2005


	Very soon, important checksetup functions will be changing. I hope that
this happens before the freeze. It's bug 285111, for anybody who's
interested.

	They are not just changing names, they are changing functionality.
Instead of taking/returning a string for a column type, they take/return
a hash in the style of the column/index definitions in
Bugzilla::DB::Schema. That's the only real functional change.

	Here is a table of functions that you should use instead of old
functions, for new patches:

Old                        New
---                        ---

No Parameter Changes
$dbh->bz_get_field_def     $dbh->bz_column_info
$dbh->bz_get_index_def     $dbh->bz_index_info
$dbh->bz_rename_field      $dbh->bz_rename_column

Parameter Changes
$dbh->bz_add_field         $dbh->bz_add_column
$dbh->bz_change_field_type $dbh->bz_alter_column
$dbh->bz_drop_field        $dbh->bz_drop_column

	I'm not going to re-implement bz_drop_table_indexes until somebody
actually needs it.

	-Max





More information about the developers mailing list