[web2py] Re: Multi column constraint

2013-07-24 Thread villas
Did you try the 'requires' separately, eg db.define_table('ts_mileage_rate', Field('customer_id', 'reference ts_customer', required=True, notnull=True), Field('mileage_rate_year', 'integer', required=True, notnull=True)) db.ts_mileage_rate.mileage_rate_year.requ

[web2py] Re: Multi column constraint

2013-07-24 Thread Anthony
Answered on SO: http://stackoverflow.com/a/17845372/440323 On Wednesday, July 24, 2013 5:03:19 PM UTC-4, msa...@gmail.com wrote: > > I am trying to use the method posted by > http://stackoverflow.com/questions/8054665/multi-column-unique-constraint-with-web2py > > db.define_table('ts_custome