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
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
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
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
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
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:
>
>
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
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)
8 matches
Mail list logo