According to the comment of @GarnerJosh, you cannot run a single command to change it - SQLite does not allow changing existing table structures. Instead, create a new table with a composite primary key and copy the data:
CREATE TABLE my_table_copy( id INTEGER, lang INTEGER, data TEXT, PRIMARY KEY (id, lang) ); INSERT INTO my_table_copy (id, lang, data) SELECT id, lang, data FROM my_table; DROP TABLE my_table; ALTER TABLE my_table_copy RENAME TO my_table;
source share