mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
alter processor - works add column tests
This commit is contained in:
@@ -43,6 +43,14 @@ export function generateTablePairingId(table: TableInfo): TableInfo {
|
||||
return table;
|
||||
}
|
||||
|
||||
export function generateDbPairingId(db: DatabaseInfo): DatabaseInfo {
|
||||
if (!db) return db;
|
||||
return {
|
||||
...db,
|
||||
tables: (db.tables || []).map(generateTablePairingId),
|
||||
};
|
||||
}
|
||||
|
||||
function testEqualNames(a: string, b: string, opts: DbDiffOptions) {
|
||||
if (opts.ignoreCase) return a.toLowerCase() == b.toLowerCase();
|
||||
return a == b;
|
||||
|
||||
Reference in New Issue
Block a user