From c922073c79f949a867827e4f302d2ec433bbe85e Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 29 May 2006 10:02:45 +0000 Subject: Bug 302876: Database Version-Checking needs to be more modular and more generic Patch By Max Kanat-Alexander r=wicked, a=myk --- Bugzilla/Constants.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Bugzilla/Constants.pm') 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'}, +}; -- cgit v1.2.3-24-g4f1b