Theme Upgrade for an existing D7 site - block and config management
You need to ensure that your new theme has the same regions defined in the info file as the current theme, otherwise the blocks will lose their assignment when the new theme is installed. The blocks are assigned in the database and they will stay assigned to those regions, as long as those regions are available.