Skip to content

general core-plugin support #14479

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

Open
meltzow opened this issue Sep 19, 2016 · 5 comments
Open

general core-plugin support #14479

meltzow opened this issue Sep 19, 2016 · 5 comments

Comments

@meltzow
Copy link

meltzow commented Sep 19, 2016

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 meltzow changed the title general plugin support general core-plugin support Sep 19, 2016
@jameskleeh
Copy link
Contributor

@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 jameskleeh added the type: enhancement New feature or request label Oct 27, 2016
@snimavat
Copy link
Contributor

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

@jchharris
Copy link
Contributor

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.

@jdaugherty
Copy link
Contributor

May be related to grails/grails-database-migration#139

@jdaugherty jdaugherty transferred this issue from grails/grails-database-migration Feb 20, 2025
@jdaugherty
Copy link
Contributor

grails/grails-data-hibernate5#981 will likely address this issue. Today we have a common grails plugin that several applications extend. Migrations exist in common and we use a jar based deployment. When starting any of those applications, it will run the migrations from the common plugin via the code in grails/grails-data-hibernate5#981

@jdaugherty jdaugherty self-assigned this Feb 20, 2025
@jdaugherty jdaugherty transferred this issue from grails/grails-data-hibernate5 Mar 13, 2025
@jdaugherty jdaugherty removed the type: enhancement New feature or request label Mar 13, 2025
@jdaugherty jdaugherty transferred this issue from apache/grails-data-mapping Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants