valderman / selda

A type-safe, high-level SQL library for Haskell
https://selda.link
MIT License
478 stars 58 forks source link

"if not exists" misplaced in create index #126

Closed paolino closed 4 years ago

paolino commented 5 years ago

I've updated to 0.4.0.0, create index doesn't work anymore at least with sqlite backend.

From sqlite create index docs the if not exists part should be placed before the on part but it's placed after, so I get syntax errors on create index statement.

Same goes for postgresql create index docs, but this I didn't test.

relevant code

commit

valderman commented 4 years ago

Fixed as of 4a536a5391e914cf95bdb83a87a208cc21ff1f05.