deploy and update database - wordpress.com · deploy and update database 1. pull the new source...
TRANSCRIPT
Deploy and Update Database
1. Pull the new source code2. Modify database connection strings and Fitbit credentials3. Commit and push changes4. Delete unnecessary table5. Make changes to database
1. Pull new source code
In the old version of source code, these tables were implemented using LINQ-to-SQL which is not well supported now. Reimplemented these tables using Entity Framework in the new code.
LINQ-to-SQL Entity Framework
2. Modify database connection strings and Fitbit credential
Replace with your own database connection string
You can find the connection string on Azure Portal.Don’t forget to fill in your ID and Password!!
Replace with your own Fitbit credential
You can find your Fitbit credential at https://dev.fitbit.com/apps
Replace with your own database connection string
Replace with your own database connection string
Replace with your own database connection string
Replace with your own database connection string
3. Commit change to trigger deployment
4. Remove unnecessary table from database
Connect to your database in SQLPro for MSSQLRight-click on AspNetUser1 and select “Drop table”
Now access your app and play around to see if everythingworks well.
5. Make changes to database
Add a column “Last Name” in “DiaryDatas”
Remove the column “Last Name” from “DiaryDatas”
Every time you make changes to the models in your code, you need to make corresponding changes to the database using SQL queries !