Updating migration scheme to be compatible with existing code expecting int ids