[1.7.x] Fixed #23702 -- Fixed adding an explicit id field on SQLite.

Thanks gavinwahl for the report.

Backport of 92269b7b53 from master