Fix issues with change tracking
This commit is contained in:
@@ -96,6 +96,7 @@ async function importOrders(prodConnection, localConnection, incrementalUpdate =
|
||||
SELECT COLUMN_NAME
|
||||
FROM INFORMATION_SCHEMA.COLUMNS
|
||||
WHERE TABLE_NAME = 'orders'
|
||||
AND COLUMN_NAME != 'updated' -- Exclude the updated column
|
||||
ORDER BY ORDINAL_POSITION
|
||||
`);
|
||||
const columnNames = columns.map(col => col.COLUMN_NAME);
|
||||
|
||||
Reference in New Issue
Block a user