mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix double drop relation
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user