As described the issue before, the lightweight migration fails due to Many to Many relation tables.
While migration, Source and Destination table names are different. It might be happening because of sorting the table names array in the tableNameForPreviousRelationship()
Else we have interchange the inverse and relationship names at the tableNameForRelationship()
Both options are resolving the migration crash. I decided to remove the sorting option instead of interchange the inverse and relationship table names.
As described the issue before, the lightweight migration fails due to Many to Many relation tables.
While migration, Source and Destination table names are different. It might be happening because of
sorting
the table names array in thetableNameForPreviousRelationship()
Else we have interchange the
inverse
andrelationship
names at thetableNameForRelationship()
Both options are resolving the migration crash. I decided to remove the
sorting
option instead of interchange theinverse
andrelationship
table names.Thanks