ci: Run db tests with a table-prefix as well (no-changelog) (#5818)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-03-30 15:09:13 +02:00
committed by GitHub
parent 0b0024d722
commit e4796c169b
3 changed files with 9 additions and 3 deletions

View File

@@ -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,
});