budu/lobos — Issue #30: :auto-inc with Postgres creates a sequence, not a SERIAL field
Author: jsyrjala
Created: 2012-02-02 22:56:52+00:00
State: open

Maybe *:auto-inc* should create a serial field with Postgres ( http://www.postgresql.org/docs/8.1/static/datatype.html )

(integer table :id :auto-inc :primary-key))

Results to these:

CREATE TABLE some_table (
id integer NOT NULL,

and

CREATE SEQUENCE some_table_id_seq

The *id* field should have this default value in addition: *DEFAULT nextval('some_table_id_seq') *