From cdafe7e5f2153368fa13c7c7e95a3e0e28350fc0 Mon Sep 17 00:00:00 2001 From: Nybkox Date: Tue, 4 Feb 2025 00:35:49 +0100 Subject: [PATCH] fix: force columns sorting when comparing --- integration-tests/__tests__/alter-table.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/integration-tests/__tests__/alter-table.spec.js b/integration-tests/__tests__/alter-table.spec.js index c178e3e8d..06baeab95 100644 --- a/integration-tests/__tests__/alter-table.spec.js +++ b/integration-tests/__tests__/alter-table.spec.js @@ -19,6 +19,7 @@ function pickImportantTableInfo(engine, table) { pureName: table.pureName, columns: table.columns .filter(x => x.columnName != 'rowid') + .sort((a, b) => a.columnName.localeCompare(b.columnName)) .map(fp.pick(props)) .map(props => _.omitBy(props, x => x == null)) .map(props =>