Why doesn SQLite allow me to use and .0 as the primary key on two different rows of the same table?
This problem occurs when your primary key is a numeric type. Change the datatype of your primary key to TEXT and it should work. Every row must have a unique primary key. For a column with a numeric type, SQLite thinks that ‘0’ and ‘0.0’ are the same value because they compare equal to one another numerically. (See the previous question.) Hence the values are not unique.