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

Choose which database the tables reside in #33

Open
vgsh opened this issue Aug 31, 2018 · 3 comments
Open

Choose which database the tables reside in #33

vgsh opened this issue Aug 31, 2018 · 3 comments

Comments

@vgsh
Copy link

vgsh commented Aug 31, 2018

Is there a way to configure the used database for the achievements (details and progress)?

I use a system containing multiple databases, and the achievement tables should not necessarily reside in the default database.

I got a working version by directly editing the source code, but this would not be future proof, as newer versions would just overwrite it.

@gabs-simon
Copy link
Contributor

Hi @vgsh !

Right now there is no feature for this. But it's a good idea - I could add the table names to the config file.

Which files did you edit to make it work? We can work together and add a pull request implementing this change for the next release.

@vgsh
Copy link
Author

vgsh commented Sep 1, 2018

Hi @gabriel-simonetti !

Thanks for your answer.

I added the $table property in both Models (AchievementDetails and AchievementProgress). This was all I did, I think.

The $table value I set is "[database_name].[table_name]".

@gabs-simon
Copy link
Contributor

Hi @vgsh !

I have added a feature for changing the tablenames on a config file. It's on the master branch now and you can expect it for the next release of the package.

Thanks a lot for letting me know about this issue!

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

No branches or pull requests

2 participants