Created
August 11, 2014 15:18
-
-
Save piotch/afdae8b2e8687f1007a5 to your computer and use it in GitHub Desktop.
Commandes pour tester la migration en UTF-8
This file contains 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 characters
python manage.py schemamigration app_name convert_utf8 --empty | |
# ici éditer le contenu de la nouvelle migration pour avoir les méthodes backward et forward de la migration générique | |
python manage.py dumpdata app_name --indent=4 > before.json | |
python manage.py migrate XXXX_convert_utf8 # remplacer XXXX par le numéro de la migration | |
python manage.py dumpdata app_name --indent=4 > after.json | |
diff before.json after.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment