upgrade and downgrade migrations now working