[Dev-flock] user, local dev database.

Lucy Mendel lucy at thoughtandmemory.org
Mon Sep 22 13:46:00 EDT 2008


yo,

Note that revision 908 introduced backwards incompatible changes to
user.py for User and UserExtended.

This is stupid, since we already have users, and breaks a lot of Good
work to separate users and profiles (what we put in UserExtended), so
revision 913 reverted those changes to User. User Extended still has
the extra fields, but since no one has been able to edit their profile
before now we don't have to worry about data loss.

To be clear: if you already have a database full of users, then if you
update the bilumi code you'll need to run ./manage.py syncdb. You'll
probably need to drop the db_userextended table and then run syncdb
since we've added a bunch of *_isPublic columns and removed the name
column (seemed redundant with User information).

If you add data in UserExtended then you'll want to dump it first and
then reload it after sync-ing (which just creates an empty table).

If you're developing locally, you can load a small dev dataset by
running the following bash script
    ./db/fixtures/small_dev/local_full_small_dev_db.sh
One day we may want to create a large dataset with automatic population.


If you have any questions about recent changes let me know. I'm
working towards a 'release' of sorts for the end of October.

Lucy.



More information about the Dev-flock mailing list