Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Doctrine Migrations
Search
Austin Morris
February 11, 2014
Technology
140
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Doctrine Migrations
It's like source control for you database!
Austin Morris
February 11, 2014
Transcript
24 slides
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]
More Decks by Austin Morris
See All by Austin Morris
Apigility
austinsmorris
0
200
SOLID Demotivators
austinsmorris
1
430
An Introduction to Design Patterns
austinsmorris
1
190
Other Decks in Technology
See All in Technology
現場に渡し、構造で守る AI エージェントを活用したセルフサーブのデータ基盤の運用
legalontechnologies
PRO
0
110
Del vibe coding a un Desarrollo (agéntico) fiable
jcabot
0
220
[関西Kaggler会 20261113] 続・コミュニティコンペのススメ
nejumi
0
200
コーディングできない僕にBobが舞い降りた
shumpei3
0
200
[DBRE Summit 26] DBRE はデータベース運用をどう変えたのか
_awache
0
130
Re:ゼロから始めるシェアハウスのペットな鯖
silmin_
0
270
その修正で本当に速くなったのか? k6とOpenTelemetryで確かめる性能改善 / Performance review with k6 and OpenTelemetry
ymotongpoo
3
440
目を覚ませ!僕らの認証情報が何者かに侵略されてるぞ
tkito
2
490
AI-DLCでソフトウェア開発の速さは 上がったのか?
rfdnxbro
0
150
落とし穴にハマってわかった 開発生産性を測るときに気をつけたいこと
munakata
3
490
OCI Artifact による自動運転タクシーに向けた OTA 基盤の構築
biwashi
1
300
認知負荷の減らし方 ~開発にも日常業務にも活かせるノウハウ~
minorun365
PRO
17
10k
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
The SEO identity crisis: Don't let AI make you average
varn
0
630
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
61k
How to build a perfect <img>
jonoalderson
1
6.3k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
410
Claude Code のすすめ
schroneko
67
230k
Bash Introduction
62gerente
615
220k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
500
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
540