mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 10:53:57 +00:00
engines in create script tab
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
const SqlDumper = require('../default/SqlDumper');
|
||||
const SqlDumper = require("../default/SqlDumper");
|
||||
|
||||
class MsSqlDumper extends SqlDumper {}
|
||||
class MsSqlDumper extends SqlDumper {
|
||||
autoIncrement() {
|
||||
this.put(" ^identity");
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = MsSqlDumper;
|
||||
|
||||
Reference in New Issue
Block a user