Closed dameyerdave closed 4 years ago
I love this package! But unfortunately migrate is not working for me 😢
PYTHONPATH=. mongoengine_migrate --uri=mongodb://localhost:27017/db makemigrations -m modules.lookup
makemigrations
PYTHONPATH=. mongoengine_migrate --uri=mongodb://localhost:27017/db migrate [INFO] MongoDB version: 4.2.3 Traceback (most recent call last): File "/Users/davmeyer/.local/share/virtualenvs/icarus_be-w4UmfLn6/bin/mongoengine_migrate", line 8, in <module> sys.exit(cli()) File "/Users/davmeyer/.local/share/virtualenvs/icarus_be-w4UmfLn6/lib/python3.8/site-packages/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/Users/davmeyer/.local/share/virtualenvs/icarus_be-w4UmfLn6/lib/python3.8/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/Users/davmeyer/.local/share/virtualenvs/icarus_be-w4UmfLn6/lib/python3.8/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Users/davmeyer/.local/share/virtualenvs/icarus_be-w4UmfLn6/lib/python3.8/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/Users/davmeyer/.local/share/virtualenvs/icarus_be-w4UmfLn6/lib/python3.8/site-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) TypeError: migrate() got an unexpected keyword argument 'dummy_actions'
The migrate command should apply the changes to my mongo database.
migrate
Could you please investigate on that and correct this error or tell me what I'm doing wrong. - Thanks 🙏
I fixed it by my merge request #2
Hello @dameyerdave . Thanks a lot for bug report. Seems that I forgot about cli parameter during refactoring.
Goodos
I love this package! But unfortunately migrate is not working for me 😢
Steps to reproduce
makemigrations
command - this woks as it should 👍Expected behaviour
The
migrate
command should apply the changes to my mongo database.Comments
Could you please investigate on that and correct this error or tell me what I'm doing wrong. - Thanks 🙏