migrate icon indicating copy to clipboard operation
migrate copied to clipboard

Auto migrate to v3

Open goenning opened this issue 7 years ago • 1 comments

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.

goenning avatar May 12 '17 19:05 goenning

It would be a nice feature, completely agree. Happy to merge any PRs that help with that.

mattes avatar May 16 '17 02:05 mattes