PMCORE-3920 Create a PM table or Report Table are not working
This commit is contained in:
@@ -148,7 +148,11 @@ CREATE TABLE ".$this->quoteIdentifier($table->getName())."
|
||||
// $script .= " DEFAULT CHARSET='". $platform->escapeText( $vendorSpecific['Collation'] )."'";
|
||||
$script .= " DEFAULT CHARSET='utf8'";
|
||||
}
|
||||
if($vendorSpecific['Comment'] ) {
|
||||
$value = null;
|
||||
if (array_key_exists('Comment', $vendorSpecific)) {
|
||||
$value = $vendorSpecific['Comment'];
|
||||
}
|
||||
if($value) {
|
||||
$script .= " COMMENT='". $platform->escapeText( $vendorSpecific['Comment'] )."'";
|
||||
}
|
||||
// if($table->getDescription()) {
|
||||
|
||||
@@ -81,6 +81,7 @@ abstract class XMLElement {
|
||||
if (is_numeric($val)) {
|
||||
return (bool) $val;
|
||||
} else {
|
||||
$val = is_null($val) ? '' : $val;
|
||||
return (in_array(strtolower($val), array('true', 't', 'y', 'yes'), true) ? true : false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,7 +72,9 @@ class MysqlPlatform extends DefaultPlatform {
|
||||
$usingInnoDB = false;
|
||||
if(class_exists('DataModelBuilder', false))
|
||||
{
|
||||
$usingInnoDB = strtolower(DataModelBuilder::getBuildProperty('mysqlTableType')) == 'innodb';
|
||||
$val = DataModelBuilder::getBuildProperty('mysqlTableType');
|
||||
$val = is_null($val) ? '' : $val;
|
||||
$usingInnoDB = strtolower($val) == 'innodb';
|
||||
}
|
||||
return $usingInnoDB || false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user