fix schema to accommodate index length restriction
get around index key length in a way compatible to both h2 and mysql
Merge pull request #198 from nla/sc-schema-fix

fix schema to accommodate index length restriction