Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Database Migrations
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
trumpi
September 08, 2012
Programming
150
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Database Migrations
A synopsis of the different database migration methods that exist - both good and bad!
trumpi
September 08, 2012
Other Decks in Programming
See All in Programming
これからAgentCoreを触る方へトレンドはGatewayです
har1101
6
430
LLMによるContent Moderationの本番運用の裏側と品質担保への挑戦
suikabar
3
800
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
180
Oxcを導入して開発体験が向上した話
yug1224
4
350
ローカルLLMを使ってB2Bサービスを作っていての学び
yaotti
0
220
Hunting Vulnerabilities in Symfony with LLMs
vinceamstoutz
0
560
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.4k
その問い、本当に正しいですか?AI時代のエンジニアに必要な哲学と認知科学 / ai-philosophy-cognitive-science
minodriven
14
6.5k
Spec Driven Development | AI Summit Lisbon
danielsogl
PRO
0
220
鹿野さんに聞く!『TypeScriptコードレシピ集』で磨く実践力
tonkotsuboy_com
4
900
Performance Engineering for Everyone
elenatanasoiu
0
240
LaravelLive Japan の裏方のすべて — 第188回 PHP勉強会@東京 (2026-06-24)
suguruooki
2
130
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
550
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
870
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
610
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.3k
Google's AI Overviews - The New Search
badams
0
1.1k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
Optimising Largest Contentful Paint
csswizardry
37
3.7k
Exploring anti-patterns in Rails
aemeredith
3
430
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
400
Transcript
Bringing the database schema up to date with a new
code base
Backup the database in a dev environment – restore it
in production The problem: Production data is completely overwritten by Dev data
Use a database schema synchronisation tool The problem: Can still
be destructive
Script every change IF NOT EXISTS (…) Becomes a problem
if a script undoes the changes of a previous script
Write scripts that check a version table Add a row
to the version table if the script is successful The best approach, but scripts are difficult to write Transactions are tricky Rolling back is difficult
Library that provides an API for database changes Transactions and
the version table is handled behind the scenes Provides forward and backward migration Libraries available in .NET • FluentMigrator • Migrator.NET
None
Always back up the database before a migration Rather restore
the database than run the “Down” migration
…but don’t be “that guy”.