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__ =
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 =