Open CaptionLittleBird opened 1 year ago
Sorry, he can't directly create many-to-many fields when creating the table model. My mistake
Please, someone take care of this
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: @.***>
just tested this on a local fork and it worked perfectly. can we please get this merged? @long2ice
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 theold_m2m_fields
andnew_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 thethrough
keyword. Now you can add and delete many to many fields