Restore disappeared transactions on upgrade