diff options
author | mkanat%bugzilla.org <> | 2006-05-29 12:02:45 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-05-29 12:02:45 +0200 |
commit | c922073c79f949a867827e4f302d2ec433bbe85e (patch) | |
tree | 4a658cc551009ff62185d08301fdc4c0b3c85cc2 /Bugzilla/Constants.pm | |
parent | 7adc23f4c0b17143d2ba9f8dab4d6a37981ef688 (diff) | |
download | bugzilla-c922073c79f949a867827e4f302d2ec433bbe85e.tar.gz bugzilla-c922073c79f949a867827e4f302d2ec433bbe85e.tar.xz |
Bug 302876: Database Version-Checking needs to be more modular and more generic
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=myk
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r-- | Bugzilla/Constants.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index aed574f67..0c451c8c3 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -101,6 +101,8 @@ use base qw(Exporter); FIELD_TYPE_FREETEXT BUG_STATE_OPEN + + DB_MODULE ); @Bugzilla::Constants::EXPORT_OK = qw(contenttypes); @@ -277,3 +279,13 @@ use constant BUG_STATE_OPEN => ('NEW', 'REOPENED', 'ASSIGNED', 'UNCONFIRMED'); 1; + +# Data about what we require for different databases. +use constant DB_MODULE => { + 'mysql' => {db => 'Bugzilla::DB::Mysql', db_version => '4.0.14', + dbd => 'DBD::mysql', dbd_version => '2.9003', + name => 'MySQL'}, + 'pg' => {db => 'Bugzilla::DB::Pg', db_version => '8.00.0000', + dbd => 'DBD::Pg', dbd_version => '1.45', + name => 'PostgreSQL'}, +}; |