-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seeding script #12
Seeding script #12
Conversation
Please also add instructions for running the seeding script to the README. |
Added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix your merge conflicts and make sure your seeding script matches the updated schema.
Fixed the failing builds. We need to sync @ludavidca @anantduggal @RahulTandon1 to fix the lack of build introspection. |
…t/sistema into vihaan/seeding-script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. All issues are resolved.
…t/sistema into vihaan/seeding-script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LBTM
Notion ticket link
Create Seeding Script
Implementation description
Steps to test
It will automatically seed when you run
docker compose up --build
Steps to test manually*
npx prisma migrate dev --name init
npx @snaplet/seed sync
to sync the seed file to any change in the data models of the databasenpx prisma db seed
to seed the database based on seed.tsdocker exec -it sistema-db-1 /bin/bash
and then in the container runpsql -U sistema -d sistema
to enter the Postgres shellSELECT * FROM public."<Table-name>";
eg:SELECT * FROM public."Absence";
What should reviewers focus on?
Checklist