migrate
migrate copied to clipboard
Auto migrate to v3
I can see some issues and comments regarding the new table schema v3 when they're already using v1.
What's your opinion on automatically upgrading the table to v3? Backward compatibility is a feature and I understand most v1 users will appreciate such thing as no one likes to manually fix things.
My proposal is that on ensureVersionTable method we can actually check is version table is v1 (missing dirty field), add dirty field, delete all rows except the last and boom. You're good to go :)
Any thoughts? I could work on a PR for postgres driver if you wish.
Thanks.
It would be a nice feature, completely agree. Happy to merge any PRs that help with that.