On Thursday, February 5, 2015 at 8:51:36 PM UTC-5, Michael Bayer wrote:
 

> and then only in conjunction with columns that explicitly use SERIAL.


Just a quick warning on this: SERIAL could also be BIGSERIAL.  They're just 
INT/BIGINT fields with certain properties set and a declared relationship 
to a sequence.   You could also have a column that almost functions like a 
SERIAL, but is just an INT that defaults to a given sequence's next value. 
 I think the only difference between the two is that a sequence's ownership 
by a column means that it will be automatically destroyed if the 
column/table is.

In addition to the alembic code, this topic has some good background on it: 
  
http://dba.stackexchange.com/questions/47098/how-do-i-determine-if-a-column-is-defined-as-a-serial-data-type-instead-of-an-in

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to