aerich icon indicating copy to clipboard operation
aerich copied to clipboard

fix migrate m2m add、change and remove

Open CaptionLittleBird opened this issue 3 years ago • 4 comments

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 avatar Feb 20 '23 09:02 CaptionLittleBird

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

CaptionLittleBird avatar Feb 20 '23 09:02 CaptionLittleBird

Please, someone take care of this

zemf4you avatar Sep 23 '23 04:09 zemf4you

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: @.***>

CaptionLittleBird avatar Sep 23 '23 04:09 CaptionLittleBird

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

brkastner avatar Jan 04 '24 21:01 brkastner