Skip to content

Commit

Permalink
Adds a note about the two commands you will use with your schema to t…
Browse files Browse the repository at this point in the history
…he top of the schema file (#8589)

It was years ago when I noted that I should send this to the template,
I've never had to look at docs after adding these - they're a bit terse,
open to changing the wording.
  • Loading branch information
orta authored and Tobbe committed Jan 1, 2024
1 parent 0a59d36 commit 37db3c1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions __fixtures__/test-project/api/db/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Don't forget to tell Prisma about your edits to this file using
// `yarn rw prisma migrate dev` or `yarn rw prisma db push`.
// `migrate` is like committing while `push` is for prototyping.
// Read more about both here:
// https://www.prisma.io/docs/orm/prisma-migrate

datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
Expand Down
6 changes: 6 additions & 0 deletions packages/create-redwood-app/templates/js/api/db/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Don't forget to tell Prisma about your edits to this file using
// `yarn rw prisma migrate dev` or `yarn rw prisma db push`.
// `migrate` is like committing while `push` is for prototyping.
// Read more about both here:
// https://www.prisma.io/docs/orm/prisma-migrate

datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
Expand Down
6 changes: 6 additions & 0 deletions packages/create-redwood-app/templates/ts/api/db/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Don't forget to tell Prisma about your edits to this file using
// `yarn rw prisma migrate dev` or `yarn rw prisma db push`.
// `migrate` is like committing while `push` is for prototyping.
// Read more about both here:
// https://www.prisma.io/docs/orm/prisma-migrate

datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
Expand Down

0 comments on commit 37db3c1

Please sign in to comment.