AFAIK, you need to use the publish profile option to achieve this.
You have to download the publish profile settings file for the website, Import the file in Visual Studio, configure the Execute Code First migrations option and then specify the profile file path in Build Definition used for Continuous deployment.
You can check below post for reference.