OnlineBuddies/Modyllic — pull request #225 by iarna (2012-11-20 16:38:38+00:00)
Title: Fix #192: Adding multiple columns resulted in invalid AFTER clauses

We fix this by traversing our way back up the column list using the after field to find the first column that has a "from" attribute. The from attribute will be set if it exists in both schema.

Because multiple columns will be added AFTER the same column, we have to reverse the order to make MySQL Do The Right Thing.