I'm using SQLAlchemy declarative extension, and I have new class inheriting
from Base
with such foreign key contraints :
__table_args__ = (
ForeignKeyConstraint(
['MarketType', 'ItemGroup'],
['MarketCommodity.MarketType', 'MarketCommodity.ItemGroup_pk',
]),
ForeignKeyConstraint(
["Price_pk", "PriceCondition_pk", "DocumentDetail_pk"],
[
'Price.Price_pk',
'Price.PriceCondition_pk',
'Price.DocumentDetail_pk'
]),
)
So, how to adjust my alembic migration script to handle these constraints?
The op.create_foreign_key does not seem to be able to handle this case.
My database is a postgreSQL one.
Thanks in advance.
Claude
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy-alembic" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.