Automatically upgrade table generation during range recovery