db: explicitly use MyISAM engine

InnoDB is the default on some setups.

Change-Id: I5cc59854cb88cbec0e7bb7f6aab946252d0bd8e5
This commit is contained in:
Horst Schirmeier
2013-07-11 09:57:01 +02:00
parent 6c9bb21ab3
commit 8622c1de12
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ std::vector<Database::Variant> Database::get_variants(const std::string &variant
" variant varchar(255) NOT NULL,"
" benchmark varchar(255) NOT NULL,"
" PRIMARY KEY (id),"
"UNIQUE KEY variant (variant,benchmark))")) {
"UNIQUE KEY variant (variant,benchmark)) ENGINE=MyISAM")) {
return result;
}
@ -131,7 +131,7 @@ int Database::get_fspmethod_id(const std::string &method)
if (!query("CREATE TABLE IF NOT EXISTS fspmethod ("
" id int(11) NOT NULL AUTO_INCREMENT,"
" method varchar(255) NOT NULL,"
" PRIMARY KEY (id), UNIQUE KEY method (method))")) {
" PRIMARY KEY (id), UNIQUE KEY method (method)) ENGINE=MyISAM")) {
return 0;
}