mirror of
https://github.com/dbgate/dbgate
synced 2024-11-22 07:48:06 +00:00
fix
This commit is contained in:
parent
ff33ec668b
commit
4f429c27c0
@ -87,7 +87,7 @@ export function dumpSqlDelete(dmp: SqlDumper, cmd: Delete) {
|
||||
if (cmd.alterTableDeleteSyntax) {
|
||||
dmp.put('^alter ^table ');
|
||||
dumpSqlSourceRef(dmp, cmd.from);
|
||||
dmp.put('^delete ');
|
||||
dmp.put(' ^delete ');
|
||||
} else {
|
||||
dmp.put('^delete ^from ');
|
||||
dumpSqlSourceRef(dmp, cmd.from);
|
||||
|
@ -44,8 +44,12 @@ class Analyser extends DatabaseAnalyser {
|
||||
...col,
|
||||
...extractDataType(col.dataType),
|
||||
})),
|
||||
primaryKey: { columns: (table.primaryKeyColumns || '').split(',').map((columnName) => ({ columnName })) },
|
||||
sortingKey: { columns: (table.sortingKeyColumns || '').split(',').map((columnName) => ({ columnName })) },
|
||||
primaryKey: table.primaryKeyColumns
|
||||
? { columns: (table.primaryKeyColumns || '').split(',').map((columnName) => ({ columnName })) }
|
||||
: null,
|
||||
sortingKey: table.sortingKeyColumns
|
||||
? { columns: (table.sortingKeyColumns || '').split(',').map((columnName) => ({ columnName })) }
|
||||
: null,
|
||||
foreignKeys: [],
|
||||
})),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user