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

Improve module migration dependencies #64

Open
zakpatterson opened this issue Apr 1, 2019 · 0 comments
Open

Improve module migration dependencies #64

zakpatterson opened this issue Apr 1, 2019 · 0 comments

Comments

@zakpatterson
Copy link
Member

Migrating modules requires listing every necessary module by name, for example, if one wants the feature-requests module and the auth module, one must initialize via:

DatabaseConfig.initialize(config)("ct_auth", "ct_feature_requests")

ct_feature_requests requires the ct_auth module to exist first. So there should be a better way to encode this dependency, and remove the strings.

Those strings also have to be exactly those, as the initialize method is going to look in resources for s"db/$schemaName/migration" This is a string then that the module owns and should not need to be specified by the user.

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

1 participant