On 1/17/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > On Tuesday 17 Jan 2006 4:45 pm, Julio Nobrega wrote: > > Restriction *is* on the database too, when you run "manage.py > > startsql" (the command that outputs the CREATE TABLEs) you can > > see the UNIQUE being added. But Bryan is updating his model, > > adding the UNIQUE after the table has been created... > > whenever you change your model, you *should* generate the new sql > and make the appropriate changes in the database - otherwise you > are just looking for trouble and sooner or later django will move > out of sync with your database.
OK, so as a database dummy, how exactly is this done? Do I pipe the output of 'manage.py sqlreset myapp' to psql, or is there a less drastic way since I know I've only changed this one thing? I don't have any real data in the database yet, but I guess eventually I probably will and will need to make changes without loosing it. Thanks, Bryan