Make migrations compatible with MasterSlaveAdapter