mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 17:46:00 +00:00
preloaded rows works with autoinc columns (fix for mssql)
This commit is contained in:
@@ -116,7 +116,14 @@ export class DatabaseInfoAlterProcessor {
|
||||
throw new Error('recreateTable not implemented for DatabaseInfoAlterProcessor');
|
||||
}
|
||||
|
||||
fillPreloadedRows(table: NamedObjectInfo, oldRows: any[], newRows: any[], key: string[], insertOnly: string[]) {
|
||||
fillPreloadedRows(
|
||||
table: NamedObjectInfo,
|
||||
oldRows: any[],
|
||||
newRows: any[],
|
||||
key: string[],
|
||||
insertOnly: string[],
|
||||
autoIncrementColumn: string
|
||||
) {
|
||||
const tableInfo = this.db.tables.find(x => x.pureName == table.pureName && x.schemaName == table.schemaName);
|
||||
tableInfo.preloadedRows = newRows;
|
||||
tableInfo.preloadedRowsKey = key;
|
||||
|
||||
Reference in New Issue
Block a user