Re: changing models vs update DB

2009-05-06 Thread Gil Sousa
Thanks, I'll try the django-evolution :) On 6 Maio, 16:44, Daniel Roseman wrote: > On May 6, 3:03 pm, Gil Sousa wrote: > > > Hi! > > > I already read that django doesn't do an update to the DB (tables > > structure) when we do the syncdb command, just create new tables if > > necessary..., but

Re: changing models vs update DB

2009-05-06 Thread Daniel Roseman
On May 6, 3:03 pm, Gil Sousa wrote: > Hi! > > I already read that django doesn't do an update to the DB (tables > structure) when we do the syncdb command, just create new tables if > necessary..., but how do I know which tables were created and which > ones should I do the manual update? > > Now

changing models vs update DB

2009-05-06 Thread Gil Sousa
Hi! I already read that django doesn't do an update to the DB (tables structure) when we do the syncdb command, just create new tables if necessary..., but how do I know which tables were created and which ones should I do the manual update? Now I am only using my local server, but I am concern

Re: changing models

2006-09-29 Thread Carlo Caponi
Thank you, Maximillian, thanks to your tip i resolved the problem!! -- Carlo Caponi http://www.karolvs.it icq #: 73707983 * Maximillian Dornseif <[EMAIL PROTECTED]> [29.09.06 11:03]: > > When I add a field I usually use "manage.py sqlall produktpass | grep > " to get the S

Re: changing models

2006-09-29 Thread Maximillian Dornseif
When I add a field I usually use "manage.py sqlall produktpass | grep " to get the SQL. So when adding something like preference = models.IntegerField(verbose_name='Präferenz', core=True, choices=PREFERENCE_CHOICES, default=0) I take the following steps: $ manage.py sqlall produktpass | grep pre

Re: changing models

2006-09-28 Thread Malcolm Tredinnick
On Thu, 2006-09-28 at 16:59 +0200, Carlo Caponi wrote: > hi, > this is my model: > > class Poll(models.Model): > question=models.CharField(maxlength=200) > > If i run './manage.py syncdb' it creates tables on db. Now i populate > tables with something. > > Now, if i change the model: > >

Re: changing models

2006-09-28 Thread can xiang
I think you'd change the schema manually. You can take a look at the "manage.py sql appname" output for the sql statement. Carlo Caponi 写道: > hi, > this is my model: > > class Poll(models.Model): > question=models.CharField(maxlength=200) > > If i run './manage.py syncdb' it creates tables

changing models

2006-09-28 Thread Carlo Caponi
hi, this is my model: class Poll(models.Model): question=models.CharField(maxlength=200) If i run './manage.py syncdb' it creates tables on db. Now i populate tables with something. Now, if i change the model: class Poll(models.Model): question=models.CharField(maxlength=200)