guanghao479 / mymd

2 stars 0 forks source link

Database migration: we need to take care of the existing rows #94

Open guanghao479 opened 11 years ago

guanghao479 commented 11 years ago

@Xinghan

When changing database schema, migration should take care of the existing rows, otherwise the apps rely on the database table will fail with some message like the following:

DatabaseError at /profiles/fmaj7/ no such column: profiles_profile.community_id

Not sure how to do it yet.

guanghao479 commented 11 years ago

And /admin page is pretty broken right now

guanghao479 commented 11 years ago

looks like syncdb doesn't change the schema of profile table for me.... not sure why

guanghao479 commented 11 years ago

so we should use south's command instead of syncdb