Migrations: Whatwhyhowwho?

Migrations: Whatwhyhowwho?

A talk I gave at EuroDjangoCon 2009.

077e9a0cb34fa3eba2699240c9509717?s=128

Andrew Godwin

May 04, 2009
Tweet

Transcript

  1. Migrations: whatwhyhowwho? http://www.flickr.com/photos/moonjazz/1216783552/

  2. I'm�Andrew. @andrewgodwin http://aeracode.org

  3. mi·gra·tion whatwhyhowwho? 1.�noun A�way�to�keep�your�sanity�when changing�model�definitions. See�also:�Schema�Evolution

  4. 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()
  5. whatwhyhowwho? django.contrib.migrations

  6. whatwhyhowwho? south migratory yadsel django-evolution dmigrations deseb schema-evolution

  7. whatwhyhowwho? south migratory yadsel django-evolution dmigrations deseb schema-evolution

  8. whatwhyhowwho? django-evolution ·�1½�years�old ·�uses�syncdb�initially ·�support�automatic�'hinting'

  9. whatwhyhowwho? dmigrations ·�8�months�old ·�uses�migrations�from�start ·�MySQL�only ·�migrations�are�project-wide

  10. whatwhyhowwho? south ·�8�months�old ·�uses�migrations�from�start ·�supports�'autodetection' ·�migrations�are�per-app ·�mine

  11. whatwhyhowwho? south django-evolution vs

  12. whatwhyhowwho? why? why?

  13. whatwhyhowwho? south django-evolution 1.�install 3.�make�initial �����migration 4.�migrate�to�initial 2.�syncdb 1.�install 2.�syncdb

  14. whatwhyhowwho? south django-evolution 1.�install 3.�make�initial �����migration 4.�migrate�to�initial 2.�syncdb 1.�install 2.�syncdb

  15. whatwhyhowwho? live�demo Ponies! South! django-evolution!

  16. whatwhyhowwho? the f�u�t�u�r�e

  17. whatwhyhowwho? http://code.djangoproject.com/wiki/SchemaEvolution http://south.aeracode.org http://code.google.com/p/django-evolution/

  18. whatwhyhowwho? Thanks. Andrew�Godwin http://aeracode.org @andrewgodwin