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
Doctrine Migrations
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Austin Morris
February 11, 2014
Technology
120
1
Share
Doctrine Migrations
It's like source control for you database!
Austin Morris
February 11, 2014
More Decks by Austin Morris
See All by Austin Morris
Apigility
austinsmorris
0
180
SOLID Demotivators
austinsmorris
1
410
An Introduction to Design Patterns
austinsmorris
1
150
Other Decks in Technology
See All in Technology
Kubernetes基盤における開発者体験 とセキュリティの両⽴ / Balancing developer experience and security in a Kubernetes-based environment
chmikata
0
170
OCI技術資料 : 証明書サービス概要
ocise
1
7.2k
GitHub Copilotを極める会 - 開発者のための活用術
findy_eventslides
4
2.3k
AIを活用したアクセシビリティ改善フロー
degudegu2510
1
140
"まず試す"ためのDatabricks Apps活用法 / Databricks Apps for Early Experiments and Validation
nttcom
1
170
Goビルドを理解し、 CI/CDの高速化に挑む
satoshin
0
130
ログ基盤・プラグイン・ダッシュボード、全部整えた。でも最後は人だった。
makikub
2
240
Webアクセシビリティは“もしも”に備える設計
tomokusaba
0
160
Even G2 クイックスタートガイド(日本語版)
vrshinobi1
0
200
JAWS DAYS 2026でAIの「もやっと」感が解消された話
smt7174
1
130
20260326_AIDD事例紹介_ULSC.pdf
findy_eventslides
0
540
ASTのGitHub CopilotとCopilot CLIの現在地をお話しします/How AST Operates GitHub Copilot and Copilot CLI
aeonpeople
1
150
Featured
See All Featured
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
160
Amusing Abliteration
ianozsvald
1
150
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
94
Joys of Absence: A Defence of Solitary Play
codingconduct
1
330
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
Accessibility Awareness
sabderemane
0
93
Odyssey Design
rkendrick25
PRO
2
560
Navigating Weather and Climate Data
rabernat
0
160
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.1k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
170
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.4k
Transcript
Doctrine Migrations It’s like source control for your database! Austin
Morris Varsity News Network (We’re hiring!)
WTF?
Doctrine Migrations • Programmatic database version control. • Easy schema
deployment. • Let the ORM do the work! http://docs.doctrine-project.org/projects/doctrine-migrations/en/latest/
Installation
composer.json
Update Doctrine CLT
cli-config.php (Doctrine 2.4)
Configure Migrations
migrations.yml
New Commands!
$ vendor/bin/doctrine list migrations
Demo!
MyMDB
MyMDB.Entity.Movie.dcm.yml
Add $views
MyMDB.Entity.Movie.dcm.yml
Create Version $ vendor/bin/doctrine migrations:diff
MyMDB\DoctrineMigrations\VersionYYYYMMDDHHMMSS
$ vendor/bin/doctrine migrations:migrate
MyMDB
MyMDB
What else? • Migrate up and down (revert). • Migrate
across multiple versions. • Migrate to specific versions. • Dry-run migrations. • Manipulate data during migrations. • Symfony has DoctrineMigrationsBundle
Problems? • Kris?
Questions? @austinsmorris
[email protected]