Skip to content

Commit 0291153

Browse files
committed
ignore commutative
1 parent e6f2a19 commit 0291153

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

drizzle-kit/src/cli/commands/check.ts

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { readFileSync } from 'fs';
2-
import { detectNonCommutative } from 'src/utils/commutativity';
32
import type { Dialect } from '../../utils/schemaValidator';
43
import { prepareOutFolder, validatorForDialect } from '../../utils/utils-node';
54
import { info } from '../views';
@@ -36,18 +35,18 @@ export const checkHandler = async (out: string, dialect: Dialect) => {
3635
}
3736
}
3837

39-
try {
40-
const response = await detectNonCommutative(snapshots, dialect);
41-
if (response!.conflicts.length > 0) {
42-
console.log('\nNon-commutative migration branches detected:');
43-
for (const c of response!.conflicts) {
44-
console.log(`- Parent ${c.parentId}${c.parentPath ? ` (${c.parentPath})` : ''}`);
45-
console.log(` A: ${c.branchA.headId} (${c.branchA.path})`);
46-
console.log(` B: ${c.branchB.headId} (${c.branchB.path})`);
47-
// for (const r of c.reasons) console.log(` • ${r}`);
48-
}
49-
}
50-
} catch (e) {
51-
console.error(e);
52-
}
38+
// try {
39+
// const response = await detectNonCommutative(snapshots, dialect);
40+
// if (response!.conflicts.length > 0) {
41+
// console.log('\nNon-commutative migration branches detected:');
42+
// for (const c of response!.conflicts) {
43+
// console.log(`- Parent ${c.parentId}${c.parentPath ? ` (${c.parentPath})` : ''}`);
44+
// console.log(` A: ${c.branchA.headId} (${c.branchA.path})`);
45+
// console.log(` B: ${c.branchB.headId} (${c.branchB.path})`);
46+
// // for (const r of c.reasons) console.log(` • ${r}`);
47+
// }
48+
// }
49+
// } catch (e) {
50+
// console.error(e);
51+
// }
5352
};

0 commit comments

Comments
 (0)