Skip to content
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

Update setup steps to mention db schema update #5947

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

minimicronano
Copy link
Contributor

@minimicronano minimicronano commented Jul 9, 2024

Description:

Updated the final step in the Environment section to mention bringing the databases up to date with their schema. yarn start will complain if you don't update your schemas.

Changes:

A line in SETUP.md

Other checks:

  • I have tested all my changes thoroughly.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to eaa3f13 in 28 seconds

More details
  • Looked at 14 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_LdptXyvew8wS8eoN


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@@ -15,7 +15,7 @@ This assumes you are using VSCode as your IDE. If you have errors or issues, you
2. Install [Postgres 16](https://www.postgresql.org/download/) and PGAdmin4 for interacting with postgres (optional, but helpful)
3. Install Yarn using: `npm i -g yarn`
4. Clone the repo: `git clone https://github.com/oldschoolgg/oldschoolbot.git`
5. Run `corepack enable` and `yarn` in the root of the repo.
5. Run the following commands in the root of the repo: `corepack enable`, `yarn`, `npx prisma db push` and `npx prisma db push --schema ./prisma/robochimp.prisma`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command npx prisma db push is duplicated in the setup instructions. This is likely a mistake as running it twice consecutively does not add any value and could lead to confusion. Consider removing the duplicate command to streamline the setup process.

Suggested change
5. Run the following commands in the root of the repo: `corepack enable`, `yarn`, `npx prisma db push` and `npx prisma db push --schema ./prisma/robochimp.prisma`
5. Run the following commands in the root of the repo: `corepack enable`, `yarn`, `npx prisma db push --schema ./prisma/robochimp.prisma`

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's like this because --schema doesn't seem to support wildcards in its path so you have to do one command for osb_test and another command for robotchimp_test

@nwjgit
Copy link
Contributor

nwjgit commented Jul 11, 2024

I believe Magna is attempting to make this generate automatically with https://github.com/oldschoolgg/oldschoolbot/blob/master/src/scripts/build.ts#L67 I messaged him in the dev channel about the issues i'm facing with it. https://discord.com/channels/342983479501389826/648196527294251020/1260987365992956015

@gc gc merged commit 83d9fa7 into oldschoolgg:master Aug 6, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants