summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB/Schema
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-03-09 12:34:05 +0100
committermkanat%bugzilla.org <>2007-03-09 12:34:05 +0100
commitf26ceb85a7ee96d66523fe75c9ed94e48660beed (patch)
treea15a6965010f7be192c29f802c9a93b0d42c1666 /Bugzilla/DB/Schema
parenta3add1d45f66b3e9805dac8ba0d22bf71ffae4cf (diff)
downloadbugzilla-f26ceb85a7ee96d66523fe75c9ed94e48660beed.tar.gz
bugzilla-f26ceb85a7ee96d66523fe75c9ed94e48660beed.tar.xz
Bug 347475: [MySQL] Use InnoDB for most tables
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
Diffstat (limited to 'Bugzilla/DB/Schema')
-rw-r--r--Bugzilla/DB/Schema/Mysql.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/DB/Schema/Mysql.pm b/Bugzilla/DB/Schema/Mysql.pm
index d7cd708a2..358137ea5 100644
--- a/Bugzilla/DB/Schema/Mysql.pm
+++ b/Bugzilla/DB/Schema/Mysql.pm
@@ -85,6 +85,8 @@ use constant REVERSE_MAPPING => {
# as in their db-specific version, so no reverse mapping is needed.
};
+use constant MYISAM_TABLES => qw(longdescs);
+
#------------------------------------------------------------------------------
sub _initialize {
@@ -130,8 +132,9 @@ sub _get_create_table_ddl {
my($self, $table) = @_;
my $charset = Bugzilla->dbh->bz_db_is_utf8 ? "CHARACTER SET utf8" : '';
+ my $type = grep($_ eq $table, MYISAM_TABLES) ? 'MYISAM' : 'InnoDB';
return($self->SUPER::_get_create_table_ddl($table)
- . " ENGINE = MYISAM $charset");
+ . " ENGINE = $type $charset");
} #eosub--_get_create_table_ddl
#------------------------------------------------------------------------------