-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Fix unable to migrate to 49 due to v49.00-059 migration #40547
Conversation
timestamp with time zone by using a fixed list of what to convert. but it turns out some customer instances has a different list. So this PR removed the fixed list and use a query to get a list of all datetime columns.
|
(map #(update-vals % (comp keyword lower-case-en))) | ||
(remove (fn [{:keys [table_name]}] | ||
(or (#{:databasechangelog :databasechangeloglock} table_name) | ||
(str/starts-with? (name table_name) "v_")))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ehm, what's v_
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those are views
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll put a comment there
Most probably because of different MySQL vendors |
* In #37160 we added a migration to convert all datetime columns to timestamp with time zone by using a fixed list of what to convert. but it turns out some customer instances has a different list. So this PR removed the fixed list and use a query to get a list of all datetime columns.
) * In #37160 we added a migration to convert all datetime columns to timestamp with time zone by using a fixed list of what to convert. but it turns out some customer instances has a different list. So this PR removed the fixed list and use a query to get a list of all datetime columns. Co-authored-by: Ngoc Khuat <qn.khuat@gmail.com>
Fixes #40546
In #37160 we added a migration to convert all datetime columns to timestamp with time zone by using a fixed list of what to convert. But it turns out not all instances have the same list, not sure why, could be that liquibase interprets the timestamp columns differently between version/dialect.
This PR removed the fixed list and used a query to get a list of all datetime columns.
Note: I don't think we need to update the checksum because custom migration has the class name, not the implementation. Tested locally.