Update DDLProcessor.java (#69)

This commit is contained in:
michaelpede 2021-04-01 18:55:34 -07:00 committed by GitHub
parent 4ea56248f0
commit ef10501763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -153,7 +153,7 @@ public class DDLProcessor extends WorksheetProcessor {
.append(" ( ") .append(" ( ")
.append(templateContent).append(",\n") .append(templateContent).append(",\n")
.append(PADDING).append(PADDING).append(buildPrimaryKeyMarkup(resourceName)).append("\n") .append(PADDING).append(PADDING).append(buildPrimaryKeyMarkup(resourceName)).append("\n")
.append(") ENGINE=InnoDB DEFAULT CHARSET=utf8;"); .append(") ENGINE=MyISAM DEFAULT CHARSET=utf8;");
}); });
LOG.info(sanitizeSql(content.toString())); LOG.info(sanitizeSql(content.toString()));
@ -180,7 +180,7 @@ public class DDLProcessor extends WorksheetProcessor {
" LegacyOdataValue VARCHAR(128) DEFAULT NULL, \n" + " LegacyOdataValue VARCHAR(128) DEFAULT NULL, \n" +
" ModificationTimestamp DATETIME DEFAULT CURRENT_TIMESTAMP, \n" + " ModificationTimestamp DATETIME DEFAULT CURRENT_TIMESTAMP, \n" +
" PRIMARY KEY (LookupKey" + (useKeyNumeric ? "Numeric" : EMPTY_STRING) + ")\n" + " PRIMARY KEY (LookupKey" + (useKeyNumeric ? "Numeric" : EMPTY_STRING) + ")\n" +
") ENGINE=InnoDB DEFAULT CHARSET=utf8;"; ") ENGINE=MyISAM DEFAULT CHARSET=utf8;";
} }
/** /**
@ -277,7 +277,7 @@ public class DDLProcessor extends WorksheetProcessor {
*/ */
private static String sanitizeSql(String sql) { private static String sanitizeSql(String sql) {
return sql return sql
.replaceAll("\\bOrder\\b", "'Order'"); .replaceAll("\\bOrder\\b", "`Order`");
} }
} }