the way we apply schema update is like this:
- wrap every SQL into a string
- create a update object, which takes the SQL, a version id, and another string "update reason "
- suppose we have 100 updates, each one will be created, and save into a list
- then loop through the list compare the version id with the current version id saved in the database, the update will be applied only if it above the current version.
the problem is we have more then 4000 lines of code in this class.
most of the updates have been done a few years ago, I hate to load them every time
is there a better way to do it in java?