grails-database-migration icon indicating copy to clipboard operation
grails-database-migration copied to clipboard

general core-plugin support

Open meltzow opened this issue 9 years ago • 3 comments

Hi, Assumption: you have a core plugin (used in multiple apps) and the grails-apps. If you change a domain class in core, all apps need a separate migration. why it not possible to link the changelog-core.groovy (in core plugin) in all grails-apps. now we can create migrations just for the core domain classes, which is automatically done in all apps?

meltzow avatar Sep 19 '16 09:09 meltzow

@meltzow Are you asking for a new feature where changelogs that exist in plugins would be included when migrations are ran in an application?

jameskleeh avatar Oct 27 '16 19:10 jameskleeh

This could work when using the inhouse plugins, but with third party plugins it would be risky to run migrations from them.

snimavat avatar Jan 11 '17 05:01 snimavat

I have the same usecase where I have a number of inhouse plugins that contribute domain objects. It is desirable for the migration code to be owned by the plugins and be maintained as part of their release cycle. From an application perspective I would like to control via config which plugins are checked for migrations and in which order they are run. By order, I just mean simply running all migrations from plugin A, then all from plugin B. By making it configurable which plugins are considered for migration contributions I think it removes the risk of unexpected contributions or outcomes from 3rd party plugins.

jchharris avatar Nov 18 '20 00:11 jchharris