Fixed #21786: Bad behaviour when mixins + abstract bases for migrations