Whenever I do modification in a contract and deploy the contract again, the data in the existing contract is completely lost as the new contract is deployed in a new address.
For instance, I have a registration Contract. When I first Deployed I forgot to retrieve the Name of the user. So, i had to modify the contract and deploy it again. In this case i lost all the registration details of the users who had registered to my application.
Now my question is: Is there a method by which i can retrieve back all the data stored in my old contract to my new contract?