Re: Any way to re-synch database when I change models.py without deleting the DB?

2007-08-24 Thread LorenDavie
You might want to check this out: http://www.aswmc.com/dbmigration/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To

Re: Any way to re-synch database when I change models.py without deleting the DB?

2007-08-24 Thread James Bennett
On 8/24/07, Stodge <[EMAIL PROTECTED]> wrote: > Is there an easy way to re-synch the database without wiping it so it > can somehow apply the SQL changes automatically? Yes, it's called "ALTER TABLE". No, there's nothing contradictory in providing an ORM without providing automated schema

Re: Any way to re-synch database when I change models.py without deleting the DB?

2007-08-24 Thread Adam Fast
You can either manually make the change with your 4# admin utility, or look at the schema-evolution branch. Just searching this group for that term will provide a world of information. I've not kept up on it's status, but you can find it easily. On 8/24/07, Stodge <[EMAIL PROTECTED]> wrote: > >

Re: Any way to re-synch database when I change models.py without deleting the DB?

2007-08-24 Thread [EMAIL PROTECTED]
I always just go to mysql and use Alter Table commands via the command line .. to sync it up to whatever changes I've made. On Aug 24, 10:50 am, Stodge <[EMAIL PROTECTED]> wrote: > While prototyping my models.py, I often have tweak it to try different > ideas out. This means I have to wipe the

Any way to re-synch database when I change models.py without deleting the DB?

2007-08-24 Thread Stodge
While prototyping my models.py, I often have tweak it to try different ideas out. This means I have to wipe the whole database and rerun manage syncdb - and I have to re-enter the admin information. Is there an easy way to re-synch the database without wiping it so it can somehow apply the SQL