mirror of
https://github.com/dbgate/dbgate
synced 2024-11-22 07:48:06 +00:00
fixed deploy
This commit is contained in:
parent
fa72d9a39f
commit
9a73eb3620
@ -231,13 +231,13 @@ export function skipNamesInStructureByRegex(db: DatabaseInfo, regex: RegExp) {
|
||||
|
||||
export function detectChangesInPreloadedRows(oldTable: TableInfo, newTable: TableInfo): boolean {
|
||||
const key =
|
||||
newTable.preloadedRowsKey ||
|
||||
oldTable.preloadedRowsKey ||
|
||||
newTable.primaryKey?.columns?.map(x => x.columnName) ||
|
||||
oldTable.primaryKey?.columns?.map(x => x.columnName);
|
||||
newTable?.preloadedRowsKey ||
|
||||
oldTable?.preloadedRowsKey ||
|
||||
newTable?.primaryKey?.columns?.map(x => x.columnName) ||
|
||||
oldTable?.primaryKey?.columns?.map(x => x.columnName);
|
||||
const oldRows = oldTable?.preloadedRows || [];
|
||||
const newRows = newTable?.preloadedRows || [];
|
||||
const insertOnly = newTable.preloadedRowsInsertOnly || oldTable.preloadedRowsInsertOnly;
|
||||
const insertOnly = newTable?.preloadedRowsInsertOnly || oldTable?.preloadedRowsInsertOnly;
|
||||
|
||||
if (newRows.length != oldRows.length) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user