Hi,

you may want to try sqlreset keyword to get the right sql output for
your db and put it down into the db directly (copy\paste)

something like this:
python manage.py sqlreset yourapp

this will drop old tables and create all new ones. Though all data is
going to be lost.
syncdb doesn't change a thing if you run in after model changes, but
it does for the new models.

Cheers,
Phil

On Jul 6, 3:17 pm, chefsmart <[email protected]> wrote:
> Hi,
>
> I have been working on an app for some time now. I have been using the
> Django svn trunk.
>
> I have a lot of data in the database. Today I modified a couple of
> fields and added a couple of fields (date and char fields) to three of
> my models. No fields have been removed from the original model
> definitions.
>
> When I do "python manage.py sql myapp" the output shows some
> inconsistent sql that is syntactically wrong. I thought this may
> simply be a jumbled string output problem, so I ran syncdb anyway.
> However, syncdb is not doing anything. I mean no messages, no error
> outputs, nothing. It just simply exits with a blank line output. I
> checked my database (mysql) and there were no changes made. So syncdb
> is not doing anything, even though the sqlall output shows it wants to
> do a lot of sql commands.
>
> Moreover, the manage.py sql myapp command shows that syncdb wants to
> drop and reconstruct tables that I have not modified, and that are not
> related to the modified models in any way.
>
> What could be going on?
>
> Regards,
> CM

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to