Fixed database migration issues with FK and default constraint names.