Re: Some thoughts about improving migration squashing

2017-02-16 Thread Gaschignard, Raphael
ion) RemoveFields, it blocks a lot of possible optimizations. We could just do that (start generating RemoveField with field info), though it would not allow for older migrations to get optimized. I'd be good with doing either/both. Raphael On Fri, Feb 17, 2017 at 3:09 PM, Gaschignard, Ra

Re: Some thoughts about improving migration squashing

2017-02-16 Thread Gaschignard, Raphael
Hi Simon, I think it's a bit more general than that. Why does the `RemoveField` exist? Because somewhere, an `AddField`-esque operation exists before it, right? Let's say we have m, m' as models. Let -F be a RemoveField(m, 'foo', ForeignKey(m') operation. We also have two operations +M',