[sqlalchemy] Cannot create primary key on JSONB column in Sqlalchemy with postgres

2018-10-17 Thread Vipin M
Hello! below is my script class User(Base): __tablename__ = "users" __table_args__ = ( PrimaryKeyConstraint('date', 'country', 'product', 'info'), {"schema":"shm"} ) date = Column('date', Date) pipeline_versions = Column('pipeline_versions', ARRAY(TEXT)) country =

[sqlalchemy] Cannot create primary key on JSONB column in Sqlalchemy with postgres

2018-10-17 Thread Vipin M
Hello! below is my script class User(Base): __table_args__ = {"schema":"shm"} __tablename__ = "users" __table_args__ = ( PrimaryKeyConstraint('date', 'country', 'product', 'info'), {"schema":"royalty_input"} ) date = Column('date', Date) pipeline_versions =

[sqlalchemy] Cannot create primary key on JSONB column in Sqlalchemy with postgres

2018-10-17 Thread Vipin M
Hello! below is my script class User(Base): __table_args__ = {"schema":"shm"} __tablename__ = "users" __table_args__ = ( PrimaryKeyConstraint('date', 'country', 'product', 'info'), {"schema":"royalty_input"} ) date = Column('date', Date) pipeline_versions =