code cheet as follows:
Base = declarative_base()
metadata = Base.metadata
session = None
class TCmcDatum(Base):
__tablename__ = 't_cmc_data'
__table_args__ = (
Index('i_cmc_data_ctime_name', 'c_time', 'slug', unique=True),
)
__table_args__ = {'schema':'crawler'}
id = Column(BIGINT(20), primary_key=True, comment='autoincr id')
c_time = Column(BIGINT(13), nullable=False, comment='created time')
of course, it can not solve the problem!
how to make it correct ? thanks