List of scalars in entities
Does Wasp support lists of scalars when defining entities? For example:
I'm getting errors when trying to run a migration with code like this.
7 Replies
hey @cgduzan ! You are probably using Sqlite, which comes by default (easier to get things running and test wasp out)? Scalar lists are not supporthed for sqlite, so you should switch to postgres, which is anyhow recommeded for production.
You can find more about switching from sqlite to postgres here 🙂 https://wasp-lang.dev/docs/data-model/backends#migrating-from-sqlite-to-postgresql
Databases | Wasp
Entities, Operations and Automatic CRUD together make a high-level interface for working with your app's data. Still, all that data has to live somewhere, so let's see how Wasp deals with databases.
That did the trick! Thank you!
Wohooo @cgduzan, you just became a Waspeteer level 1!
Is it expected that
wasp db studio
doesn't work once I switched to Postgres?No it should still work
Whats the problem?
Weird... it's working now. I don't think I changed anything. Who knows 🤷