Problem with migration:run


Hi, I am using adonis and mongodb in a docker container

using adonis migration:run i get

Error: already exists
at Object.createCollection (/api/node_modules/lucid-mongo/src/Database/index.js:196:17)
at process._tickCallback (internal/process/next_tick.js:68:7)

but adonis migration:run --log creates the table in the database, after series of warnings about an unhandled promise rejection

also, migration:status never works, all i get is

TypeError: Cannot read property ‘width’ of null
at get_width (/api/node_modules/cli-table/lib/index.js:130:42)
at /api/node_modules/cli-table/lib/index.js:125:68
at Array.forEach ()
at extractColumnWidths (/api/node_modules/cli-table/lib/index.js:124:9)
at /api/node_modules/cli-table/lib/index.js:98:11
at Array.forEach ()
at Table.toString (/api/node_modules/cli-table/lib/index.js:95:16)
at MigrationStatus.table (/api/node_modules/@adonisjs/ace/src/Command/index.js:737:23)
at MigrationStatus.handle (/api/node_modules/lucid-mongo/commands/MigrationStatus.js:52:12)



lucid-mongo is a completely separate third party library and I’m 99% sure is not an official AdonisJs package (maybe @virk or @romain.lanz can correct me if I’m wrong).

Perhaps you might get a better chance of help if you file a bug report with the author of lucid-mongo regarding breakage with migration:status and other error messages: