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

Use the schema of the selected database when running the 'ImportTramslationsCommand'. #123

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

caswd
Copy link

@caswd caswd commented Jun 27, 2024

My application uses multiple databases (for a multi-tenancy structure I will not get into) and I found out that I had to modify the import command to make the Schema:: facade logic work. This is a PR to do that.

This is my first open source contribution, please be nice I have missed anything. I really love the package!

You can test this by setting up another database alongside your main database and setting it's connection as the 'database_connection' in the config. Then run the migrations in that database and assert that the import command (and import --fresh) works. Of course it should also still works if the tables are in the main database and 'database_connection' is null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant