My app was launched few weeks ago. Some of the tables inside the sqlite database are virtual tables (FTS4). Now I need to add several columns to some of the virtual tables. But when I add the query to alter my virtual tables inside onUpgrade, I'll always get this error
android.database.sqlite.SQLiteException: virtual tables may not be altered: bla bla
So is there any workaround to this matter?
答案 0 :(得分:1)
You cannot alter a virtual table.
You will unfortunately have to go through the process of DROPping the current one and reCREATing it.
Hope this helps.