In my project, I use sqlite database, unfortunately my friend made a mistake. The field is not of the correct type. So, at the moment when the data in the "localid" field (declare as an integer) is more than 2147483647, all entries in this field are set to max 2147483647.
The sql query query alter table / alter does not work with sqlite because it supports a limited subset of ALTER TABLE: only rename and add a new column.
So how can I make changes without losing data? to create a new database correctly, copy all the data into it and delete the old one?
But maybe there is a better way? Does anyone have an idea?
source share