Fix double drop relation

This commit is contained in:
rijkvanzanten
2021-08-19 17:11:49 -04:00
parent c1c05d4c4f
commit 256139ffd2
2 changed files with 5 additions and 9 deletions

View File

@@ -54,7 +54,12 @@ export default function getDatabase(): Knex {
connection: env.DB_CONNECTION_STRING || connectionConfig,
log: {
warn: (msg) => {
// Ignore warnings about returning not being supported in some DBs
if (msg.startsWith('.returning()')) return;
// Ignore warning about MySQL not supporting TRX for DDL
if (msg.startsWith('Transaction was implicitly committed, do not mix transactions and DDL with MySQL')) return;
return logger.warn(msg);
},
error: (msg) => logger.error(msg),