[PATCH] Modify migrations to work on fresh installation.