You need to either specify index=True
or explicitly create an Index
object:
Index('myindex', mytable.c.col1, mytable.c.col2, unique=True)
, which allows more control over other index parameters, such as name and support for multiple columns.
See Indexes for more details.
van
source share