Fix MASSIVE upgrade bug about migrations not being executed properly