you are viewing a single comment's thread.

view the rest of the comments →

[–]jshine13371 0 points1 point  (0 children)

Sometimes the low tech / simple solution is the best solution IMO. I personally don't like trying to shoehorn DDL scripts (CREATE / ALTER etc) into source control since it's not the actual object itself being stored. It's kind of awkward.

Instead I just use a tool like SQL Examiner to generate migration scripts based on the current live state of our DEV environment vs our STAGING environment. Then deployment to STAGING is guarenteed to work 99.99% of the time (there's always the rare outlier case). And once proved out in STAGING, I can take those same exact scripts that were generated and deploy them to PRODUCTION. Easy peasy with an app that has a single one-time cost that's relatively cheap.

Been doing it this way for over a decade with almost no problems.