Improve module migration dependencies
zakpatterson opened this issue · comments
Zak Patterson commented
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.