<@U5HU0CR7A>: I’m new here. But as im asking for h...
# orm-help
c
@faure: I’m new here. But as im asking for help above, I’m happy to help with what little I know. - To answer your question, when you do a change to your schema and then run
prisma deploy
if you’ve added any fields to your type object, it generates a new column in your table with a default value of
null
. If you want to set a default value use
{ someValue: String! @default(value: 'somedefault')
. This is assuming you are not using an existing database and that “migrations: true” in your docker-compose.yml. If you are using an existing database migrations will be set to false (this is to protect your database from any changes to the existing tables).
🙌 2