marcaurele commented on issue #2247: CLOUDSTACK-10012: Load SQL schema scripts 
from JAR
URL: https://github.com/apache/cloudstack/pull/2247#issuecomment-331806489
 
 
   From our experience on this change that is running in production for us, we 
can deploy a new SQL schema/lab with the usual mvn developer script, as well as 
upgrading the DB on schema changes. If a customization is needed, we should 
invert the way the upgrades are executed and do a package scan on classes 
rather than declaring them "statically" in `DatabaseUpgradeChecker`. It should 
help anyone to extend an upgrade class to add extra changes. The upgrade 
classes should declare themselves the version from which they should be run, 
and the DB version after the upgrade. With the help of a Comparable, we could 
sort them in the correct order, and even skip over unneeded ones if a class 
declares a bigger upgrade path.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to