PMCORE-3920 Create a PM table or Report Table are not working

This commit is contained in:
Roly Gutierrez
2022-08-17 09:19:35 -04:00
parent 2427b40a74
commit 73fc20af00
9 changed files with 42 additions and 18 deletions

View File

@@ -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()) {

View File

@@ -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);
}
}

View File

@@ -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;
}