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
Austin Morris
February 11, 2014
Technology
1
120
Doctrine Migrations
It's like source control for you database!
Austin Morris
February 11, 2014
Tweet
Share
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
OCI技術資料 : 外部接続 VPN接続 詳細
ocise
1
10k
【2026年版】生成AIによる情報システムへのインパクト
taka_aki
0
190
マイグレーションガイドに書いてないRiverpod 3移行話
taiju59
0
330
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
14k
primeNumber DATA MANAGEMENT CAMP #2:
masatoshi0205
1
640
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
43k
Eight Engineering Unit 紹介資料
sansan33
PRO
1
6.8k
競争優位を生み出す戦略的内製開発の実践技法
masuda220
PRO
2
500
[続・営業向け 誰でも話せるOCI セールストーク] AWSよりOCIの優位性が分からない編(2026年2月20日開催)
oracle4engineer
PRO
0
140
インシデント対応入門
grimoh
7
5.5k
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.1k
2026-02-25 Tokyo dbt meetup プロダクトと融合したCI/CD で実現する、堅牢なデータパイプラインの作り方
y_ken
0
150
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
Tell your own story through comics
letsgokoyo
1
830
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
130
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
150
Facilitating Awesome Meetings
lara
57
6.8k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Six Lessons from altMBA
skipperchong
29
4.2k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
First, design no harm
axbom
PRO
2
1.1k
sira's awesome portfolio website redesign presentation
elsirapls
0
170
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
750
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]