mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-03 08:56:53 +00:00
chore: cleanup mssql and sync dependencies
This commit is contained in:
@@ -69,10 +69,6 @@ export const clientTypes = [
|
||||
text: 'MySql',
|
||||
value: ClientType.MYSQL,
|
||||
},
|
||||
{
|
||||
text: 'MSSQL',
|
||||
value: ClientType.MSSQL,
|
||||
},
|
||||
{
|
||||
text: 'PostgreSQL',
|
||||
value: ClientType.PG,
|
||||
@@ -131,13 +127,6 @@ const sampleConnectionData: { [key in ConnectionClientType]: DefaultConnection }
|
||||
password: 'password',
|
||||
database: '_test',
|
||||
},
|
||||
[ClientType.MSSQL]: {
|
||||
host: defaultHost,
|
||||
port: 1433,
|
||||
user: 'sa',
|
||||
password: 'Password123.',
|
||||
database: '_test',
|
||||
},
|
||||
[ClientType.SQLITE]: {
|
||||
client: ClientType.SQLITE,
|
||||
database: homeDir,
|
||||
@@ -209,11 +198,7 @@ export const getDefaultConnectionConfig = (client: ClientType): ProjectCreateFor
|
||||
return {
|
||||
client,
|
||||
connection: sampleConnectionData[client],
|
||||
searchPath: [ClientType.PG, ClientType.MSSQL].includes(client)
|
||||
? client === ClientType.PG
|
||||
? ['public']
|
||||
: ['dbo']
|
||||
: undefined,
|
||||
searchPath: [ClientType.PG].includes(client) ? (client === ClientType.PG ? ['public'] : ['dbo']) : undefined,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user