I can't use postgresql and mysql at the same time using driverFactory property

everyone, I am trying to configure two DBs (postgresql and mysql) but only the one that I have by default in the .env works
driverFactory: ({ dataSource } = {}) => {
switch (dataSource) {
case 'db1':
return new PostgresDriver({
database: "A",
host: "A",
user: "A",
password: "A",
port: 5432,
});
case 'db2':
return new MySQLDriver({
database: "B",
host: "B",
user: "B",
password: "B",
port: 3306,
});
default:
throw new Error('Database not found');
break;
}
}, So if I have this in my .env only the mysql db works CUBEJS_DB_HOST=B
CUBEJS_DB_PORT=3306
CUBEJS_DB_NAME=B
CUBEJS_DB_USER=B
CUBEJS_DB_PASS=B
CUBEJS_DB_TYPE=mysql But if I set my .env with postgres credentials then only postgres works. The Error in postgres when mysql is in the .env: syntax error at or near “.” The Error in mysql when postgres is in the .env: {“error”:“Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘.applied_at “migrations__applied_at”, count(“migrations”.id) “migrations__count”’ at line 1”}It’s like cube only use the sintax for the database in the .env