ci: Define explicit charset for mysql/mariadb test database (no-changelog) (#7053)

[DB
Tests](https://github.com/n8n-io/n8n/actions/runs/6035513299/job/16375993427)
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-08-31 11:57:40 +02:00 committed by GitHub
parent 3b9f0fed7a
commit 281c0ae829
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ export async function init() {
await Db.init(getDBOptions('postgres', testDbName));
} else if (dbType === 'mysqldb' || dbType === 'mariadb') {
const bootstrapMysql = await new Connection(getBootstrapDBOptions('mysql')).initialize();
await bootstrapMysql.query(`CREATE DATABASE ${testDbName}`);
await bootstrapMysql.query(`CREATE DATABASE ${testDbName} DEFAULT CHARACTER SET utf8mb4`);
await bootstrapMysql.destroy();
await Db.init(getDBOptions('mysql', testDbName));