I need the ability to add FTS3 to a sqlite3 table after it was created, not as it is created. Does anyone know the ALTER syntax to accomplish this?
+2
A:
SQLite does not support altering a table from a normal table to an FTS3 table. All you can do with ALTER TABLE
is change the table name or add columns.
You will have to use CREATE VIRTUAL TABLE
to make the FTS3 table and then copy the data.
Doug Currie
2010-05-24 18:54:57
Thanks for the quality answer. Unfortunately I am creating the database using sqlalchemy so that it works with different databases. I have to add the FTS3 after the table is created. I wonder if possibly sqlalchemy has a special declaration for sqlite3 and fts3 when modeling the tables.
foxhop
2010-05-24 19:24:22