SQLite missing table!?


I recently started playing with the new features of yii (ie: test driven development) and I encountered an interesting issue.

I created a DB and ran the yiic shell on it to create a model. everything seems fine, but when I’m trying to run the automatically generated test, I’ll get the following error:

1) testCreate(ProjectTest)

CDbException: CDbCommand failed to execute the SQL statement: CDbCommand failed to prepare the SQL statement: SQLSTATE[HY000]: General error: 1 no such table: sqlite_sequenceUPDATE sqlite_sequence SET seq='0' WHERE name='Project'







it looks like the table is not recognized even if it’s there. I know this, because when I purposely deleted the table, I’ll get a different error message:

1) testCreate(ProjectTest)

CDbException: The table "Project" for active record class "Project" cannot be found in the database.





have you guys seen this before?



just another comment: it’s working with MySQL!


Does the sqlite_sequence table exist?