Im building and app with flutter that uses SQLite database. I have created first table using this piece of code:
void _createDb(Database db, int newVersion)
Hard to say without seeing your openDatabase
call and whether the database exists before or not. One of my guess is that you are still using the same database version. Once onCreate
has been called it will never be called again. You should try to bump your database version and add the new table in on onUpgrade