tortoise / aerich

A database migrations tool for TortoiseORM, ready to production.
https://github.com/tortoise/aerich
Apache License 2.0
804 stars 90 forks source link

fix migrate m2m add、change and remove #288

Open CaptionLittleBird opened 1 year ago

CaptionLittleBird commented 1 year ago

dictdiffer.diff is not friendly to check the list. It can only check the difference between the elements of the same index of two lists, but the old_m2m_fields and new_m2m_fields The elements of these two lists are not sorted, and it is easy to compare errors. The function in this submission can sort these two lists according to the through keyword. Now you can add and delete many to many fields

CaptionLittleBird commented 1 year ago

Sorry, he can't directly create many-to-many fields when creating the table model. My mistake

zemf4you commented 9 months ago

Please, someone take care of this

CaptionLittleBird commented 9 months ago

I use alembic now

---Original--- From: @.> Date: Sat, Sep 23, 2023 12:27 PM To: @.>; Cc: @.**@.>; Subject: Re: [tortoise/aerich] fix migrate m2m add、change and remove (PR #288)

Please, someone take care of this

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

brkastner commented 6 months ago

just tested this on a local fork and it worked perfectly. can we please get this merged? @long2ice