add support for setting database engine for mysql in Schema

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7459 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-09-15 12:56:05 +00:00
parent df6bfd2bcc
commit f3d80d40a1

View File

@ -475,6 +475,12 @@ sub buildcreatestmt
$retv =~ s/,$/)\n)/;
}
$retv =~ s/,$/)\n)/;
# allow engine change for mysql
if ($descr->{engine}) {
if ($xcatcfg =~ /^mysql:/) { #for mysql
$retv .= " ENGINE=$descr->{engine} ";
}
}
#print "retv=$retv\n";
return $retv;
}