Hi all.
In my app I have a bootstrap method that calls:
metadata.create_all(checkfirst)
against a postgres RDS instance.
The tables already exist however the query emitted seems to be:
CREATE TABLE user_roles (
user_id INTEGER NOT NULL,
role_id INTEGER NOT NULL,
PRIMARY KEY (user_id, role_id),
FOREIGN KEY(user_id) REFERENCES "user" (id),
FOREIGN KEY(role_id) REFERENCES role (id)
)
Per my understanding this query should not even be emitted or if it is
there should be a 'IF NOT EXISTS' somewhere in there.
I was wondering if someone could point out what I am doing wrong?
Thanks.
AM
--
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.