You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seeing that this is still an open issue (most likely because it is trivial and I did not close it already), I wanted to verify this problem report using today's version of RW (see the list of files below), I believe that my original report was correct and that the sequence of commands defined in Setup"
Please verify and close either way (eventually remove the line yarn rw prisma db seed from Setup instructions
My final report
The following instructions
git clone https://github.com/redwoodjs/redwood-tutorial
cd redwood-tutorial
yarn install
yarn rw prisma migrate dev
yarn rw prisma db seed
yarn rw dev
have a redundant command yarn rw prisma db seed, because the execution of yarn rw prisma migrate dev "internally" invokes the seed command yarn rw exec seed;
The claim written as a title of this issue (Command yarn rw prisma db seed redundant) is easily verified by inspecting the log of the yarn rw prisma migrate dev command (see below)
nik$ yarn rw prisma migrate dev
Running Prisma CLI...
$ yarn prisma migrate dev --schema /Users/nik/dev/work/redwood/rw-community/redwood-tutorial-postgresql/api/db/schema.prisma
Prisma schema loaded from api/db/schema.prisma
Datasource "db": SQLite database "dev.db" at "file:./dev.db"
SQLite database dev.db created at file:./dev.db
Applying migration `20210222013102_init_database`
Applying migration `20220208231150_create_user`
The following migration(s) have been applied:
migrations/
└─ 20210222013102_init_database/
└─ migration.sql
└─ 20220208231150_create_user/
└─ migration.sql
Your database is now in sync with your schema.
✔ Generated Prisma Client (3.14.0 | library) to ./node_modules/@prisma/client in
116ms
Running seed command `yarn rw exec seed` ...
[09:17:39] Generating Prisma client [started]
[09:17:39] Generating Prisma client [completed]
[09:17:39] Running script [started]
Seeded "Welcome to the blog!"
Seeded "A little more about me"
Seeded "What is the meaning of life?"
Seeded admin user:
Email: [email protected]
Password: admin
(Please don't use this login in a production environment)
[09:17:39] Running script [completed]
🌱 The seed command has been executed.
The text was updated successfully, but these errors were encountered:
I believe that my explanation about the redundancy of the command yarn rw prisma db seed redundant in the text:
git clone https://github.com/redwoodjs/redwood-tutorial
cd redwood-tutorial
yarn install
yarn rw prisma migrate dev
yarn rw prisma db seed
yarn rw dev
in the Setup section has been validated many times in the last couple of years. Taking the liberty that all bugs are worth fixing (otherwise the discoverers of minor bugs will get depressed and not report them) I would suggest addressing such reports.
There are several other issues like "bring the tutorial to RW r.x" that were addressed log time ago.
Added on Jan 22, 2023
Seeing that this is still an open issue (most likely because it is trivial and I did not close it already), I wanted to verify this problem report using today's version of RW (see the list of files below), I believe that my original report was correct and that the sequence of commands defined in Setup"
Please verify and close either way (eventually remove the line
yarn rw prisma db seed
from Setup instructionsMy final report
The following instructions
have a redundant command
yarn rw prisma db seed
, because the execution ofyarn rw prisma migrate dev
"internally" invokes the seed commandyarn rw exec seed
;Definition of my context
Added later
Please ignore this issue (delete it) - I proved to myself that both instructions
are needed.
Summary
The command
yarn rw prisma migrate dev
implicitly includes the action caused by the following command (yarn rw prisma db seed
).The tutorial section using-the-example-repo explains the need to run the following list of six commands;
needed to make the clone of the Redwood Blog application complete (up to the functionality of the first four chapters of the RedwoodJS Tutorial Application.
The claim written as a title of this issue (Command
yarn rw prisma db seed
redundant) is easily verified by inspecting the log of theyarn rw prisma migrate dev
command (see below)The text was updated successfully, but these errors were encountered: