mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
ci: Run db tests with a table-prefix as well (no-changelog) (#5818)
This commit is contained in:
committed by
GitHub
parent
0b0024d722
commit
e4796c169b
@@ -512,7 +512,7 @@ export const getSqliteOptions = ({ name }: { name: string }): ConnectionOptions
|
||||
name,
|
||||
type: 'sqlite',
|
||||
database: ':memory:',
|
||||
entityPrefix: '',
|
||||
entityPrefix: config.getEnv('database.tablePrefix'),
|
||||
dropSchema: true,
|
||||
migrations: sqliteMigrations,
|
||||
migrationsTableName: 'migrations',
|
||||
@@ -525,6 +525,7 @@ const baseOptions = (type: TestDBType) => ({
|
||||
port: config.getEnv(`database.${type}db.port`),
|
||||
username: config.getEnv(`database.${type}db.user`),
|
||||
password: config.getEnv(`database.${type}db.password`),
|
||||
entityPrefix: config.getEnv('database.tablePrefix'),
|
||||
schema: type === 'postgres' ? config.getEnv('database.postgresdb.schema') : undefined,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user