Skip to content

Commit add85a8

Browse files
ortaTobbe
authored andcommitted
Adds a note about the two commands you will use with your schema to the 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.
1 parent 26764e9 commit add85a8

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

__fixtures__/test-project/api/db/schema.prisma

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Don't forget to tell Prisma about your edits to this file using
2+
// `yarn rw prisma migrate dev` or `yarn rw prisma db push`.
3+
// `migrate` is like committing while `push` is for prototyping.
4+
// Read more about both here:
5+
// https://www.prisma.io/docs/orm/prisma-migrate
6+
17
datasource db {
28
provider = "sqlite"
39
url = env("DATABASE_URL")

packages/create-redwood-app/templates/js/api/db/schema.prisma

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Don't forget to tell Prisma about your edits to this file using
2+
// `yarn rw prisma migrate dev` or `yarn rw prisma db push`.
3+
// `migrate` is like committing while `push` is for prototyping.
4+
// Read more about both here:
5+
// https://www.prisma.io/docs/orm/prisma-migrate
6+
17
datasource db {
28
provider = "sqlite"
39
url = env("DATABASE_URL")

packages/create-redwood-app/templates/ts/api/db/schema.prisma

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Don't forget to tell Prisma about your edits to this file using
2+
// `yarn rw prisma migrate dev` or `yarn rw prisma db push`.
3+
// `migrate` is like committing while `push` is for prototyping.
4+
// Read more about both here:
5+
// https://www.prisma.io/docs/orm/prisma-migrate
6+
17
datasource db {
28
provider = "sqlite"
39
url = env("DATABASE_URL")

0 commit comments

Comments
 (0)