Skip to content

Commit

Permalink
Update wit correct steps to seed db
Browse files Browse the repository at this point in the history
  • Loading branch information
SerpentBytes committed Oct 26, 2022
1 parent 1106d33 commit 4840906
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/web/docusaurus/docs/getting-started/environment-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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)
Expand Down

0 comments on commit 4840906

Please sign in to comment.