Last active
August 29, 2015 14:01
-
-
Save ionatan-israel/72267c725ffce36c0e9d to your computer and use it in GitHub Desktop.
Revisions
-
ionatan-israel revised this gist
May 13, 2014 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,9 @@ # si es una app nueva ./manage.py schemamigration aplication --initial # si se realizan cambios, entonces ./manage.py schemamigration aplication --auto # se hace el cambio en la bbdd ./manage.py migrate aplication -
ionatan-israel revised this gist
May 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,7 +25,7 @@ # migrar desde otra maquina """ Si este paso '0001' ya existe en la maquina donde intentamos migrar, entonces usamos el parametro --fake, para saltar este paso, pero registrandolo en la tabla de migraciones de south """ -
ionatan-israel created this gist
May 7, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,37 @@ """ uso basico de south """ # GENERAR MIGRACIONES: # si es una app nueva ./manage.py schemamigration aplication --initial # se hace el cambio en la bbdd ./manage.py migrate aplication # si ya existian los modelos que queremos modificar entonces ./manage.py convert_to_south aplication # luego """ Migración de modelos """ # si se realizan cambios, entonces ./manage.py schemamigration aplication --auto # migrar desde la misma maquina donde se crearon los scripts de migraciones ./manage.py migrate aplication # migrar desde otra maquina """ Si este paso '0001' ya existe en en la maquina donde intentamos migrar, entonces usamos el parametro --fake, para saltar este paso, pero registrandolo en la tabla de migraciones de south """ ./manage.py migrate aplication 0001 --fake """ Si el paso '0002' no existe entonces migramos, sin el parametro --fake """ ./manage.py migrate aplication 0002