Django database - how to add this column in raw SQL.

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-03-14T09:57:58Z Indexed on 2010/03/14 10:05 UTC
Read the original article Hit count: 155

Filed under:
|
|
|

Suppose I have my models set up already.

class books(models.Model):
    title = models.CharField...
    ISBN = models.Integer...

What if I want to add this column to my table?

user = models.ForeignKey(User, unique=True)

How would I write the raw SQL in my database so that this column works?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about database