WatermelonDB icon indicating copy to clipboard operation
WatermelonDB copied to clipboard

feat: add renameColumn migration step

Open zhenkaGo opened this issue 2 years ago • 2 comments

I added the renameColumn migration step.

zhenkaGo avatar Aug 31 '23 09:08 zhenkaGo

Thanks for this! Have you looked at https://github.com/Nozbe/WatermelonDB/pull/1211 ? IIRC, there's a similar problem here as with deleting columns - that it may not work for older versions of SQLite. So at the very least there should be a big fat warning about this, or a workaround that works for all versions

radex avatar Sep 01 '23 10:09 radex

Hi @radex. I've looked at https://github.com/Nozbe/WatermelonDB/pull/1211. I found a way around this problem for older versions of SQLite. You can read how it solves here. and please check how I implemented it in this PR.

zhenkaGo avatar Sep 19 '23 14:09 zhenkaGo

Thanks @zhenkaGo -- I'll close this PR as the work continues in https://github.com/Nozbe/WatermelonDB/pull/1799

radex avatar Jun 13 '24 21:06 radex