Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Migrations: Whatwhyhowwho?
Andrew Godwin
May 04, 2009
Programming
0
43
Migrations: Whatwhyhowwho?
A talk I gave at EuroDjangoCon 2009.
Andrew Godwin
May 04, 2009
Tweet
Share
More Decks by Andrew Godwin
See All by Andrew Godwin
A Newcomer's Guide To Airflow's Architecture
andrewgodwin
0
86
Async, Python, and the Future
andrewgodwin
1
360
How To Break Django: With Async
andrewgodwin
1
280
Taking Django's ORM Async
andrewgodwin
0
330
The Long Road To Asynchrony
andrewgodwin
0
380
The Scientist & The Engineer
andrewgodwin
1
370
Pioneering Real-Time
andrewgodwin
0
150
Just Add Await: Retrofitting Async Into Django
andrewgodwin
2
1.1k
Terrain, Art, Python and LiDAR
andrewgodwin
1
230
Other Decks in Programming
See All in Programming
SRE NEXT 2022: Sensible Incident Management for Software Startups
takanabe
1
180
Nix for Scala folks
kubukoz
0
120
Monadic Java
mariofusco
4
250
How useEvent would change our applications
koba04
1
980
Micro Frontends with Module Federation: Beyond the Basics @jax2022
manfredsteyer
PRO
0
240
C言語でメモリ管理を考えた話
hkawai
0
180
Where and how to run UI tests (Droidcon Lisbon & Android Makers, Paris)
nonews
0
110
heyにおけるSREの大切さ~マルチプロダクト運用の「楽しさ」と「難しさ」および今後の展望~
fufuhu
1
1k
職場にPythonistaを増やす方法
soogie
0
170
Testing, how hard can it be? (Droidcon Lisbon 2022)
dpreussler
3
200
microCMS × imgixを活用して品質とレスポンスを両立したポートフォリオサイトを作成した話
takehitogoto
0
370
A technique to implement DSL in Ruby
okuramasafumi
0
290
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
253
11k
For a Future-Friendly Web
brad_frost
164
7.4k
WebSockets: Embracing the real-time Web
robhawkes
57
4.9k
GitHub's CSS Performance
jonrohan
1020
410k
In The Pink: A Labor of Love
frogandcode
130
21k
Infographics Made Easy
chrislema
233
17k
The Pragmatic Product Professional
lauravandoore
19
2.8k
Raft: Consensus for Rubyists
vanstee
126
5.4k
Writing Fast Ruby
sferik
612
57k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
100
5.9k
Web development in the modern age
philhawksworth
197
9.3k
Gamification - CAS2011
davidbonilla
75
3.9k
Transcript
Migrations: whatwhyhowwho? http://www.flickr.com/photos/moonjazz/1216783552/
I'm�Andrew. @andrewgodwin http://aeracode.org
mi·gra·tion whatwhyhowwho? 1.�noun A�way�to�keep�your�sanity�when changing�model�definitions. See�also:�Schema�Evolution
whatwhyhowwho? class Pony(models.Model ): name = models.CharField(max_length=100) height = models.IntegerField()
class Pony(models.Model ): name = models.CharField(max_length=100) height = models.FloatField() born = models.DateField()
whatwhyhowwho? django.contrib.migrations
whatwhyhowwho? south migratory yadsel django-evolution dmigrations deseb schema-evolution
whatwhyhowwho? south migratory yadsel django-evolution dmigrations deseb schema-evolution
whatwhyhowwho? django-evolution ·�1½�years�old ·�uses�syncdb�initially ·�support�automatic�'hinting'
whatwhyhowwho? dmigrations ·�8�months�old ·�uses�migrations�from�start ·�MySQL�only ·�migrations�are�project-wide
whatwhyhowwho? south ·�8�months�old ·�uses�migrations�from�start ·�supports�'autodetection' ·�migrations�are�per-app ·�mine
whatwhyhowwho? south django-evolution vs
whatwhyhowwho? why? why?
whatwhyhowwho? south django-evolution 1.�install 3.�make�initial �����migration 4.�migrate�to�initial 2.�syncdb 1.�install 2.�syncdb
whatwhyhowwho? south django-evolution 1.�install 3.�make�initial �����migration 4.�migrate�to�initial 2.�syncdb 1.�install 2.�syncdb
whatwhyhowwho? live�demo Ponies! South! django-evolution!
whatwhyhowwho? the f�u�t�u�r�e
whatwhyhowwho? http://code.djangoproject.com/wiki/SchemaEvolution http://south.aeracode.org http://code.google.com/p/django-evolution/
whatwhyhowwho? Thanks. Andrew�Godwin http://aeracode.org @andrewgodwin