<<

Bugzilla::Install::DB

NAME

Bugzilla::Install::DB - Fix up the database during installation.

SYNOPSIS

 use Bugzilla::Install::DB qw(indicate_progress);
 Bugzilla::Install::DB::update_table_definitions();

 indicate_progress({ total => $total, current => $count, every => 10 });

DESCRIPTION

This module is used primarily by checksetup.pl to modify the database during upgrades.

SUBROUTINES

update_table_definitions()

Description: This is the primary code that updates table definitions during upgrades. If you modify the schema in some way, you should add code to the end of this function to make sure that your modifications happen over all installations.

Params: none

Returns: nothing

update_fielddefs_definition()

Description: checksetup.pl depends on the fielddefs table having its schema adjusted before the rest of the tables. So these schema updates happen in a separate function from "update_table_definitions()".

Params: none

Returns: nothing

indicate_progress({ total = $total, current => $count, every => 1 })>

Description: This prints out lines of dots as a long update is going on, to let the user know where we are and that we're not frozen. A new line of dots will start every 60 dots.

Params: total - The total number of items we're processing. current - The number of the current item we're processing. every - How often the function should print out a dot. For example, if this is 10, the function will print out a dot every ten items.

Returns: nothing

<<