Thanks, what the equivalent in mysql? Meanwhile, I think I will try patch to 0.96 found in http://code.djangoproject.com/wiki/SchemaEvolutionDocumentation
Thanks another time, Xan. On Sep 26, 12:27 am, Joe <[EMAIL PROTECTED]> wrote: > The easiest way to to this is look at the create table SQL generated > by the manager. > > python manage.py --settings=my_settings sql my_app > > Then, run the appropriate query once you know the datatype created > when you added the column. > > For example, in postgres: > > ALTER TABLE myapp_mymodel ADD COLUMN mycol INT NOT NULL; > > On Sep 25, 2:41 pm, Xan <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I use django 0.96. I have a simple model and I just want to add one > > field to my existing model. How can I do that? I think that I can't do > > that without SQL code. But unfortunely I don't know it. > > > Anyone could give me a example of SQL code for adding one field to one > > model? > > > If I only have the solution to upgrade to django-cvs, how can I pass > > all my data from django 0.96 models to svn django models? > > > Thanks in advance, > > Xan. --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---