Re: [sqlalchemy] NameError: name 'Index' is not defined

2015-06-19 Thread Simon King
On Thu, Jun 18, 2015 at 8:27 PM, Kevin Qiu explodeandr...@gmail.com wrote: I try to define composite index on last_name, first_name on flask-sqlalchemy, the error says NameError: name 'Index' is not defined Code: class Student(mydb.Model): __tablename__ = 'STUDENT' __table_args__ =

[sqlalchemy] NameError: name 'Index' is not defined

2015-06-18 Thread Kevin Qiu
I try to define composite index on last_name, first_name on flask-sqlalchemy, the error says NameError: name 'Index' is not defined Code: class Student(mydb.Model): __tablename__ = 'STUDENT' __table_args__ = (Index('SearchNameIndices', last_name, first_name), ) study_no =