echobind / bisonapp

A Full Stack Jamstack in-a-box brought to you by Echobind
MIT License
590 stars 29 forks source link

fix: Update the initial database migration to include recent changes to schema.prisma. #275

Closed cullylarson closed 2 years ago

cullylarson commented 2 years ago

A recent PR introduced a change to schema.prisma that made it so a new Bison app will need to immediately create/run a new migration. This PR updates the initial database migration to include these changes.

I generated the file by:

  1. Create a new Bison app.
  2. Remove all the migration files.
  3. Run yarn db:migrate.

This created a new Prisma migration for the entire database. I then copied this into the PR.

Checklist