engines in create script tab

This commit is contained in:
Jan Prochazka
2020-03-03 08:01:24 +01:00
parent a4a470de45
commit 17e2c18c49
5 changed files with 69 additions and 38 deletions

View File

@@ -130,7 +130,7 @@ class SqlDumper {
if (column.isPersisted) this.put(" ^persisted");
return;
}
this.put("%k", column.dataType);
if (column.dataType) this.put("%k", column.dataType);
if (column.autoIncrement) {
this.autoIncrement();
}
@@ -180,7 +180,7 @@ class SqlDumper {
createTable(table) {
this.put("^create ^table %f ( &>&n", table);
this.putCollection(",&n", table.columns, col => {
this.put("%i", col.columnName);
this.put("%i ", col.columnName);
this.columnDefinition(col);
});
if (table.primaryKey) {