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

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

caswd
Copy link
Contributor

@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

@MohmmedAshraf MohmmedAshraf force-pushed the main branch 2 times, most recently from 9f04f9b to 4db0efb Compare October 14, 2024 11:40
@MohmmedAshraf MohmmedAshraf merged commit bd4eb78 into MohmmedAshraf:main Dec 22, 2024
4 of 5 checks passed
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.

2 participants