Fix migrations on a fresh install