1

I'm trying to use waterline 0.10 with sails-mongo outside sails and everything is working fine but when I upgraded sails-mongo from 0.10.0-rc5 to 0.10.2 I'm getting now an error below is the error I getting.

Waterline encountered a fatal error when trying to perform thealterauto-migration strategy.

...

Error (E_UNKNOWN) :: Encountered an unexpected error: Message contains no documents

...

Details: MongoError: Message contains no documents

Thanks in advance guys.

Travis Webb
  • 14,688
  • 7
  • 55
  • 109
ginad
  • 1,863
  • 2
  • 27
  • 42

2 Answers2

1

sails-mongo 0.10.1 seems not affected.

The 0.10.2 release also seems to remove attributes on documents: https://github.com/balderdashy/sails-mongo/issues/174

This auto-migration behaviour is not enabled on production environments, and you can force it disabled as explained here.

Community
  • 1
  • 1
gileri
  • 662
  • 8
  • 16
0

Yes downgrade to 0.10.1, the migration-function is disabled there.

mdunisch
  • 3,627
  • 5
  • 25
  • 41