Message 27437

Author
ced
Date
2016-07-28.22:51:44
Message id
27437

Content

I propose instead of overriding __register__ and use TableHandler to add the indexes, we could have an attribute on the ModelSQL to list the indexes '_sql_indexes' just like we have '_sql_constraint'.
The syntax could be:

_sql_indexes = [
    ['column1', 'column2'],
    ['column1'],
    …
    ]
History
Date User Action Args
2016-07-28 22:51:45cedsetmessageid: <1469739105.47.0.0572914871174.issue5757@tryton.org>
2016-07-28 22:51:45cedsetrecipients: + albertca, pokoli
2016-07-28 22:51:45cedlinkissue5757 messages
2016-07-28 22:51:44cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)