Unexpected add_index behavior with sqlite #1799
Jammjammjamm
started this conversation in
General
Replies: 1 comment
-
The sqlite adapter should not be raising an error. This isn't a bug. It's an consequence of using a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a migration creating a table. It looks like this (with unnecessary information removed):
So, I accidently used
add_index
instead of justindex
. Sqlite didn't complain about this, and it wasn't until I tried using postgres that I discovered my error:When I dump the schema I can see the problem:
Should the sqlite adapter have been raising an error like the postgres one does? Using
add_index
instead ofindex
seems like an easy mistake to make.Beta Was this translation helpful? Give feedback.
All reactions