Modify a Column's Type in sqlite3
Solution 1:
SQLite doesn't support removing or modifying columns, apparently. But do remember that column data types aren't rigid in SQLite, either.
See also:
- SQLite Modify Column
Solution 2:
If you prefer a GUI, DB Browser for SQLite will do this with a few clicks.
- "File" - "Open Database"
- In the "Database Structure" tab, click on the table content (not table name), then "Edit" menu, "Modify table", and now you can change the data type of any column with a drop down menu. I changed a 'text' field to 'numeric' in order to retrieve data in a number range.
DB Browser for SQLite is open source and free. For Linux it is available from the repository.