mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 02:43:59 +00:00
test fix for clickhouse
This commit is contained in:
@@ -27,6 +27,9 @@ describe('Schema tests', () => {
|
|||||||
await runCommandOnDriver(conn, driver, dmp => dmp.dropSchema('myschema'));
|
await runCommandOnDriver(conn, driver, dmp => dmp.dropSchema('myschema'));
|
||||||
const structure2 = await driver.analyseIncremental(conn, structure1);
|
const structure2 = await driver.analyseIncremental(conn, structure1);
|
||||||
expect(structure2.schemas.find(x => x.schemaName == 'myschema')).toBeFalsy();
|
expect(structure2.schemas.find(x => x.schemaName == 'myschema')).toBeFalsy();
|
||||||
|
|
||||||
|
const structure3 = await driver.analyseIncremental(conn, structure2);
|
||||||
|
expect(structure3).toBeNull();
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@@ -41,7 +44,7 @@ describe('Base analyser test', () => {
|
|||||||
conn,
|
conn,
|
||||||
`create table t2 (
|
`create table t2 (
|
||||||
id int not null primary key,
|
id int not null primary key,
|
||||||
t1_id int null references t1(id)
|
t1_id int
|
||||||
)`
|
)`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user