Open brunosp-49 opened 1 year ago
Did you bump schema version after changing schema to force it to be recreated?
Yes I tried, thank you @radex , I found the solution, and maybe that can help someone else, I had to reorganize my schemas, and delete the dbName in my database, then it worked
Changing the dbName works because your database will be rebuilt using the new name and create the tables again, if you create new tables later on you'll need to clear your app storage, reinstall the app, bump the schema version and create the migrations (if you already have the app running in prod) or change the dbName again (which is not really optimal).
works
resolved my issued +1
Hi, I'm trying to fetch all the data of my collection called demands, but I can't do that because I receive this error no such table: demands (code 1 SQLITE_ERROR): that is my code:
const result = await database.collections.get('demands').query().fetch();
and that is my database:and my schema:
and finally my "demand" schema part:
how can I make this work?