compare DB: diff view

This commit is contained in:
Jan Prochazka
2021-10-31 09:40:54 +01:00
parent 5484dc8ace
commit 336edfc93f
7 changed files with 112 additions and 12 deletions

View File

@@ -68,3 +68,10 @@ export function computeTableDiffColumns(
targetNotNull: row?.target?.notNull,
}));
}
export function getCreateTableScript(table: TableInfo, driver: EngineDriver) {
if (!table || !driver) return '';
const dmp = driver.createDumper();
dmp.createTable(table);
return dmp.s;
}