fixes for schema migration production