[sqlalchemy] Examples for Index() in 07Migration wiki

2011-04-22 Thread Yap Sok Ann
In the 07Migration wiki, there is this line: Index('name', name=idx_name) which doesn't work for me. I have to change it to: Index('idx_name', 'name') Is it a typo or some python 3 only syntax? -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To

Re: [sqlalchemy] Examples for Index() in 07Migration wiki

2011-04-22 Thread Michael Bayer
On Apr 22, 2011, at 2:05 AM, Yap Sok Ann wrote: In the 07Migration wiki, there is this line: Index('name', name=idx_name) which doesn't work for me. I have to change it to: Index('idx_name', 'name') its a typo as an Index only has one name, its the first arg. Is it a typo or