The New Bugzilla::DB::Schema
Max Kanat-Alexander
mkanat at kerio.com
Wed Mar 9 05:57:17 UTC 2005
OK, so thanks to Ed Sabol, we have a new way of storing our database
tables and columns.
In the past, you'd go into checksetup, and you'd modify the %tables
hash with your new table and column definition.
Now, instead, you modify the contents of the variable
Bugzilla::DB::Schema::ABSTRACT_SCHEMA. The format is described in the
Schema module itself, and it's fairly straightforward. If you have any
trouble, just look at all the tables that currently exist.
You don't need to know *anything* else about Bugzilla::DB::Schema,
unless you're a Bugzilla::DB hacker.
You still add upgrade code to checksetup in the same fashion that you
always have, with the bz_add_field, bz_change_field_def, etc. statements
above the last --TABLE-- statement. Those functions will change later,
but they are not changing now.
If you have any questions, you can probably catch me in IRC to ask.
-Max
More information about the developers
mailing list