this feature should be added and is http://www.sqlalchemy.org/trac/ticket/2700,
here's a workaround for now:
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
class FixTableArgs(object):
@classmethod
def __declare_last__(cls):
Hi,
What is the recommended method of specifying constraints on columns
added by a subclass using single-table inheritance? This does not work,
I get a KeyError for "col_a":
class BaseClass(Base)
__table__ = "base"
__table_args__ = (Index("base_col"),
UniqueConstrain