Tried with a postgresql database and I get another error right in my metadata.create_all().
I get a SQLError: (ProgrammingError) from postgres telling me I got something wrong while creating constraint on unexisting key into table bases. CREATE TABLE folders ( id INTEGER NOT NULL, description TEXT, FOREIGN KEY(id) REFERENCES bases (id), PRIMARY KEY (id) ) But if I remove owner_id from BASES and I remove the relation in base_mapper, I get all tables created. Any idea ?? Michael Bayer a écrit : > sqlite's autoincrement feature does not work when you define a > composite primary key. youll have to set the "id" attribute on each > instance manually before flushing. > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---