Re: [flask] flaskext.sqlalchemy Postgresql Sequence
- From:
- danjac354@gmail.com
- Date:
- 2010-10-27 @ 20:47
Why not just do :
id = db.Column(db.Integer, primary_key=True)
and let sqlalchemy create the sequence automatically ?
On 27 October 2010 21:41, Thomas Lehmann <thomasheilbronn@gmx.de> wrote:
> Hi,
>
> I have a problem with the flask extension sqlalchemy and postgresql.
> When i create my table, the sequence does not automaticly connect to the
> column.
>
> My code:
> id = db.Coulumn(db.Interger, db.Sequence('seq_id'), primary_key=True)
>
> Any suggestions?
>
Re: [flask] flaskext.sqlalchemy Postgresql Sequence
- From:
- Thomas Lehmann
- Date:
- 2010-10-27 @ 20:47
Oh, so easy :).
Thx