Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when running migrate:rollback #560

Closed
girardinsamuel opened this issue Dec 23, 2021 · 2 comments
Closed

TypeError when running migrate:rollback #560

girardinsamuel opened this issue Dec 23, 2021 · 2 comments
Labels
bug An existing feature is not working as intended

Comments

@girardinsamuel
Copy link
Contributor

Describe the bug

python craft migrate:rollback

  TypeError

  rollback() got an unexpected keyword argument 'config_path'

  at ~/.pyenv/versions/m4_01/lib/python3.9/site-packages/masoniteorm/commands/MigrateRollbackCommand.py:17 in handle
      13│         {--d|directory=databases/migrations : The location of the migration directory}
      14│     """
      15│
      16│     def handle(self):
    → 17│         Migration(
      18│             command_class=self,
      19│             connection=self.option("connection"),
      20│             migration_directory=self.option("directory"),
      21│         ).rollback(

To Reproduce
In a fresh Masonite 4 project with ORM 2.0.

Expected behavior
It should not raise error.

Screenshots or code snippets
Screenshots help a lot. If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS
  • Version: Big Sur

What database are you using?

  • SQLite
  • Masonite ORM: 2.0
@girardinsamuel girardinsamuel added the bug An existing feature is not working as intended label Dec 23, 2021
@josephmancuso
Copy link
Member

I don't think I have 2.0 updated on PYPI with the latest changes right?

@girardinsamuel
Copy link
Contributor Author

No indeed, but I have installed wihout pypi direcltry from github.
Actually it's a real bug in 2.0, I am fixing it right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An existing feature is not working as intended
Projects
None yet
Development

No branches or pull requests

2 participants