You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const migrateTables = async () => {
// .... connection and other preparations
const filenames = fs.readdirSync('migrations/tables');
for (const filename of filenames) {
try {
console.log(`Migrating ${filename}`)
await conn.importFile({file: `migrations/tables/${filename}`, database: targetDb})
} catch (e) {
console.error(`Migrate error in file ${filename}: ${e}`)
}
}
}
I get no error messages and no errors at all. I've found errors only when enabling debug mode. There are messages from the server with errors.
Is there is possibility of getting errors without debug mode?
The text was updated successfully, but these errors were encountered:
I have code to migrate from old DB to new
I get no error messages and no errors at all. I've found errors only when enabling debug mode. There are messages from the server with errors.
Is there is possibility of getting errors without debug mode?
The text was updated successfully, but these errors were encountered: