mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
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:
parent
3b9f0fed7a
commit
281c0ae829
|
@ -98,7 +98,7 @@ export async function init() {
|
||||||
await Db.init(getDBOptions('postgres', testDbName));
|
await Db.init(getDBOptions('postgres', testDbName));
|
||||||
} else if (dbType === 'mysqldb' || dbType === 'mariadb') {
|
} else if (dbType === 'mysqldb' || dbType === 'mariadb') {
|
||||||
const bootstrapMysql = await new Connection(getBootstrapDBOptions('mysql')).initialize();
|
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 bootstrapMysql.destroy();
|
||||||
|
|
||||||
await Db.init(getDBOptions('mysql', testDbName));
|
await Db.init(getDBOptions('mysql', testDbName));
|
||||||
|
|
Loading…
Reference in a new issue