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
seed:run
command ignores connection
option
#689
Comments
@josephmancuso #690 only fixed this on the The underlying issue is still that Would simply adding |
I'll update this for the seed:run as well I guess I missed that in the PR |
The best i can do right now is setting the connection on the seeder class so you can do something like this: class UserTableSeeder(Seeder):
def run(self):
"""Run the database seeds."""
factory(User.on(self.connection), 5).create({
'name': 'Joe',
'password': 'joe',
}) |
Describe the bug
The
connection
option is available onseed:run
(andmigrate:refresh
when used together), but this option is ignored, resulting in the default database connection always being used.Expected behaviour
No response
Steps to reproduce the bug
No response
Screenshots
No response
OS
macOS
OS version
Monterey 12.3.1
Browser
No response
Masonite Version
4.12.1
Anything else ?
No response
The text was updated successfully, but these errors were encountered: