Skip to content

Commit

Permalink
fix(ci): create schema for server tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ArsenyYankovsky committed Apr 11, 2024
1 parent 82e82b3 commit 8f4578f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/utils/create-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const createConnectionAndResetData = async (
) => {
const connection = await createConnection(dbType, { ...partialOptions, synchronize: false })
if (dbType === 'postgres') {
await connection.query('DROP SCHEMA foo CASCADE; CREATE SCHEMA foo;')
await connection.query('DROP SCHEMA IF EXISTS foo CASCADE; CREATE SCHEMA foo;')
}
await connection.synchronize(true)
return connection
Expand Down

0 comments on commit 8f4578f

Please sign in to comment.