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

Bug in migrate:refresh command #793

Closed
kassiodouglas opened this issue Sep 16, 2022 · 0 comments · Fixed by #796
Closed

Bug in migrate:refresh command #793

kassiodouglas opened this issue Sep 16, 2022 · 0 comments · Fixed by #796
Labels
bug An existing feature is not working as intended

Comments

@kassiodouglas
Copy link

Hi! I found a bug when trying to run a command here, (follows below), it accuses the "self.option" method in this case has more arguments than it supports, I understood the idea there of putting the default value, but it's not working. Changing the MigrateRefreshCommand.py file, it works.

command: masonite-orm migrate:refresh --connection=default --directory=app/database/migrations --seed-directory=app/database/seeders --seed

Error:

option() takes from 1 to 2 positional arguments but 3 were given
       32│
       33│ if self.option("seed") == "null":
       34│ self.call(
       35│ "seed:run",
     → 36│ f"None --directory {self.option('seed-directory')} --connection {self.option('connection', 'default')}",
       37│)
       38│
       39│ elif self.option("seed"):
       40│ self.call(

If I'm doing something wrong, please let me know. thank you!

@kassiodouglas kassiodouglas added the bug An existing feature is not working as intended label Sep 16, 2022
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

Successfully merging a pull request may close this issue.

1 participant