deploy and update database - wordpress.com · deploy and update database 1. pull the new source...
TRANSCRIPT
![Page 1: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/1.jpg)
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
![Page 2: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/2.jpg)
1. Pull new source code
![Page 3: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/3.jpg)
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
![Page 4: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/4.jpg)
![Page 5: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/5.jpg)
![Page 6: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/6.jpg)
2. Modify database connection strings and Fitbit credential
![Page 7: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/7.jpg)
Replace with your own database connection string
![Page 8: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/8.jpg)
You can find the connection string on Azure Portal.Don’t forget to fill in your ID and Password!!
![Page 9: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/9.jpg)
Replace with your own Fitbit credential
![Page 11: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/11.jpg)
![Page 12: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/12.jpg)
Replace with your own database connection string
![Page 13: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/13.jpg)
![Page 14: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/14.jpg)
Replace with your own database connection string
![Page 15: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/15.jpg)
![Page 16: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/16.jpg)
Replace with your own database connection string
![Page 17: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/17.jpg)
![Page 18: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/18.jpg)
Replace with your own database connection string
![Page 19: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/19.jpg)
3. Commit change to trigger deployment
![Page 20: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/20.jpg)
![Page 21: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/21.jpg)
4. Remove unnecessary table from database
![Page 22: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/22.jpg)
Connect to your database in SQLPro for MSSQLRight-click on AspNetUser1 and select “Drop table”
![Page 23: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/23.jpg)
Now access your app and play around to see if everythingworks well.
![Page 24: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/24.jpg)
5. Make changes to database
![Page 25: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/25.jpg)
Add a column “Last Name” in “DiaryDatas”
![Page 26: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/26.jpg)
![Page 27: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/27.jpg)
![Page 28: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/28.jpg)
Remove the column “Last Name” from “DiaryDatas”
![Page 29: Deploy and Update Database - WordPress.com · Deploy and Update Database 1. Pull the new source code 2. Modify database connection strings and Fitbit credentials 3. Commit and push](https://reader034.vdocuments.mx/reader034/viewer/2022042201/5ea1ce9fb19f5a2b6763002d/html5/thumbnails/29.jpg)
Every time you make changes to the models in your code, you need to make corresponding changes to the database using SQL queries !