I am trying to run this query:
CREATE TABLE dependenciesbinary (
id INTEGER NOT NULL AUTO_INCREMENT,
dependency_mn VARCHAR(128),
name VARCHAR(128),
operatingsystem VARCHAR(128),
architecture VARCHAR(128),
PRIMARY KEY (id),
FOREIGN KEY(dependency_mn) REFERENCES dependencies (modulename)
)ENGINE=InnoDB CHARSET=utf8
But create_all() is not creating the table "dependencies" before
"dependenciesbinary" which causes MySQL to error due to the missing
table.
Is there some way I can change the order of the create statements to
fix this?
I am using Declarative if that helps.
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
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.