-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
bugSomething isn't workingSomething isn't workingschemathings related to the DDL related objects like Table, Column, CreateIndex, etc.things related to the DDL related objects like Table, Column, CreateIndex, etc.
Milestone
Description
Migrated issue, originally created by Michael Bayer (@zzzeek)
from sqlalchemy import Table, MetaData, Column, Integer
m1 = MetaData()
t1 = Table(
't', m1, Column('id', Integer, unique=True)
)
m2 = MetaData()
t2 = t1.tometadata(m2)
print t2.constraints
output:
set([UniqueConstraint(Column('id', Integer(), table=<t>)), PrimaryKeyConstraint(), UniqueConstraint(Column('id', Integer(), table=<t>))])
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingschemathings related to the DDL related objects like Table, Column, CreateIndex, etc.things related to the DDL related objects like Table, Column, CreateIndex, etc.