I'm adding columns to my mysql database - Migrating my database to south -


i have mysql database. want add more columns, i'm starting use south. want set database use south. how do this?

i followed steps @ 1054 unknown column django after south migration no avail

no changes models yet

(venv)sfo-mpmgr:summertime msmith$ python manage.py convert_to_south livestream creating migrations directory @ '/users/msmith/documents/dj/summertime/livestream/migrations'... creating __init__.py in '/users/msmith/documents/dj/summertime/livestream/migrations'...  + added model livestream.stream created 0001_initial.py. can apply migration with: ./manage.py migrate livestream  - soft matched migration 0001 0001_initial. running migrations livestream:  - migrating forwards 0001_initial.  > livestream:0001_initial    (faked)  app 'livestream' converted. note south assumed application's models matched database (i.e. haven't changed since last syncdb); if have, should delete livestream/migrations directory, revert models.py matches database, , try again.    (venv)sfo-mpmgr:summertime msmith$ python manage.py schemamigration livestream --auto nothing seems have changed.   (venv)sfo-mpmgr:summertime msmith$ python manage.py migrate livestream --fake running migrations livestream: - nothing migrate. - loading initial data livestream. installed 0 object(s) 0 fixture(s)   (venv)sfo-mpmgr:summertime msmith$ python manage.py migrate livestream running migrations livestream: - nothing migrate.  - loading initial data livestream. installed 0 object(s) 0 fixture(s) 

now update models new attribute.

(venv)sfo-mpmgr:summertime msmith$ python manage.py schemamigration livestream --auto databaseerror: (1054, "unknown column 'livestream_stream.step' in 'field list'") 

anyone know how avoid error?


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -