From 4840906bdcf37f83ed2df42264c7074a52fe2eb9 Mon Sep 17 00:00:00 2001 From: Taimoor Dawami Date: Wed, 26 Oct 2022 16:17:27 -0400 Subject: [PATCH] Update wit correct steps to seed db --- .../docs/getting-started/environment-setup.md | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/web/docusaurus/docs/getting-started/environment-setup.md b/src/web/docusaurus/docs/getting-started/environment-setup.md index f97cc89d6c..e0869e16a3 100644 --- a/src/web/docusaurus/docs/getting-started/environment-setup.md +++ b/src/web/docusaurus/docs/getting-started/environment-setup.md @@ -242,6 +242,7 @@ Docker builds Telescope's dependencies at launch and keeps them on disk. In some ### Seeding PostgresSQL +<<<<<<< HEAD <<<<<<< HEAD The first time you start the database, it doesn't have any data. Therefore, we need database seeding as a way to populate the database with an initial set of data. @@ -259,11 +260,25 @@ Finally, restart the `parser` container by running `pnpm:services start parser`/ # More information on our database can be found [here](https://telescope.cdot.systems/docs/tools-and-technologies/prisma/). -The first time you start the database, it doesn't have any data. Therefore, we need database seeding as a way to populate the database with an initial set of data to make some parts of our application work properly. +# The first time you start the database, it doesn't have any data. Therefore, we need database seeding as a way to populate the database with an initial set of data to make some parts of our application work properly. + +The first time you start the database, it doesn't have any data. Therefore, we need database seeding as a way to populate the database with an initial set of data. + +> > > > > > > 16986fb4 (Update docs based on feedback) + +To seed the database with initial data use the command `pnpm db:init` which will run `db:migrate` and `db:seed`. + +#### About `db:migrate` -To seed the database with initial data use the command `pnpm seed`. +Running `db:migrate` , will run a migration to apply new changes to the database if any. + +#### About `db:seed` + +Running this command will populate the database with an initial set of data to make some parts of our application work properly. + +Finally, restart the `parser` container by running `pnpm:services start parser`/ -More information can be found [here](https://telescope.cdot.systems/docs/tools-and-technologies/prisma/). +More information on our database can be found [here](https://telescope.cdot.systems/docs/tools-and-technologies/prisma/). > > > > > > > 4debcaf1 (Fixes #3692 by adding database info to file)