db syn logical fix

This commit is contained in:
Jan Prochazka
2021-11-25 15:14:23 +01:00
parent a9216eda89
commit cec0130cba
10 changed files with 41 additions and 23 deletions

View File

@@ -46,7 +46,7 @@ async function testTableDiff(conn, driver, mangle) {
mangle(tget(structure2));
structure2 = extendDatabaseInfo(structure2);
const { sql } = getAlterTableScript(tget(structure1), tget(structure2), {}, structure2, driver);
const { sql } = getAlterTableScript(tget(structure1), tget(structure2), {}, structure1, structure2, driver);
console.log('RUNNING ALTER SQL', driver.engine, ':', sql);
await driver.script(conn, sql);