You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Depending on the version number, do you think that it is possible to keep the state of the table and automatically determine the changes to the columns and tables?
If it is possible, maybe there can be a way to auto add new tables and new columns to databases. These 2 types of migrations should be pretty straightforward if that is possible.
The text was updated successfully, but these errors were encountered:
I saw that before opening this.
I believe version annotations on tables can be simpler to do.
I opened this because I think there can even be an automated way to do it. I will investigate further.
Sure, it's easy enough to automatically add missing tables or columns. I'm just not sure I like adding that much magic.
Developers might expect more things to happen automatically, like adding or changing a default value. This just isn't possible without renaming the old table, creating the new table, copying data over and dropping the old table.
Rather than introducing too much behavior that isn't obvious from looking at the code I'd much rather provide annotations (e.g. @Version) and utility classes (e.g. helper methods for checking if a column exists) that makes the developers life easier.
Depending on the version number, do you think that it is possible to keep the state of the table and automatically determine the changes to the columns and tables?
If it is possible, maybe there can be a way to auto add new tables and new columns to databases. These 2 types of migrations should be pretty straightforward if that is possible.
The text was updated successfully, but these errors were encountered: