default schema refactor

This commit is contained in:
Jan Prochazka
2024-09-19 13:41:49 +02:00
parent 9eb27f5e92
commit 8c3c32aeba
9 changed files with 38 additions and 11 deletions

View File

@@ -32,6 +32,7 @@ describe('Schema tests', () => {
const schemas2 = await driver.listSchemas(conn);
expect(schemas2.find(x => x.schemaName == 'myschema')).toBeTruthy();
expect(schemas2.length).toEqual(count + 1);
expect(schemas2.find(x => x.isDefault).schemaName).toEqual(engine.defaultSchemaName);
expect(structure2).toBeNull();
})
);

View File

@@ -82,6 +82,7 @@ const engines = [
},
],
supportSchemas: true,
defaultSchemaName: 'public',
},
{
label: 'SQL Server',
@@ -107,6 +108,7 @@ const engines = [
},
],
supportSchemas: true,
defaultSchemaName: 'dbo',
},
{
label: 'SQLite',