database deployment strategy: avoiding merging
DESCRIPTION
Merging two databases that have diverged is often very time consuming, painful, and can lead to data corruption, data loss, and bugs. In this talk, we take a look at a strategy to avoid merging databases and decrease the likelihood of our deployment going sideways.TRANSCRIPT
![Page 1: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/1.jpg)
Database Deployment Strategy: Avoiding Merging
![Page 2: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/2.jpg)
The Problem
https://www.flickr.com/photos/devaburger/5176328620/
![Page 3: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/3.jpg)
![Page 4: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/4.jpg)
![Page 5: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/5.jpg)
“I’m currently pulling the live database, developing, then pushing to live while
crossing my fingers no pages, posts, comments etc. have been added or
updated.” !
— Actual Developer Comment Leeroy Jenkins?
![Page 6: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/6.jpg)
Why not build a database merge tool?
![Page 7: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/7.jpg)
https://www.flickr.com/photos/95661536@N05/9000977033/
![Page 8: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/8.jpg)
https://www.flickr.com/photos/lastaii/1251140093/
![Page 9: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/9.jpg)
The Strategy
![Page 10: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/10.jpg)
$ git rebase master First, rewinding head to replay your work on top of it...
![Page 11: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/11.jpg)
Test over and over and…
![Page 12: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/12.jpg)
Blip
![Page 13: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/13.jpg)
![Page 14: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/14.jpg)
Working in Teams
![Page 15: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/15.jpg)
PHP Deployment Script
![Page 16: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/16.jpg)
RAMP
![Page 17: Database Deployment Strategy: Avoiding Merging](https://reader033.vdocument.in/reader033/viewer/2022052310/5455a63db1af9f40378b4979/html5/thumbnails/17.jpg)
Brad Touesnard @bradt http://bradt.ca
Delicious Brains http://deliciousbrains.com
WP Migrate DB Pro Get 20% off with coupon WCMIA Expires this Wednesday (May 15)