On 9/22/05, jocknerd <[EMAIL PROTECTED]> wrote:
> What's the easiest way to add a table to an existing database.  I'm
> currently destroying the database and recreating it but this will be a
> problem once I've got real data. I was thinking about doing this:
>
> Make the change to the model and then run django-admin.py sql
> myproject.  I'm using PostgreSQL so I type psql databasename and then
> create the new table with the sql code for the new table that was
> generated previously.  Then I restart the django server.

Yup, doing it with manual SQL statements, as you've outlined, is the
best way to do it at this point. It's a tricky problem to solve, but a
couple of people are working on a more automated solution.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to