Skip to content

Conversation

@Furbreeze
Copy link
Contributor

When following the steps in CONTRIBUTING.md I ran into the following error:

[web] The table `public.UserToOrg` does not exist in the current database.
[web]     at <unknown> (src/initialize.ts:15:46)
[web]     at async pruneOldGuestUser (src/initialize.ts:15:23)
[web]     at async initSingleTenancy (src/initialize.ts:41:5)
[web]     at async (src/initialize.ts:103:9)
[web]   13 | const pruneOldGuestUser = async () => {
[web]   14 |     // The old guest user doesn't have the GUEST role
[web] > 15 |     const guestUser = await prisma.userToOrg.findUnique({
[web]      |                                              ^
[web]   16 |         where: {
[web]   17 |             orgId_userId: {
[web]   18 |                 orgId: SINGLE_TENANT_ORG_ID, {
[web]   code: 'P2021',
[web]   clientVersion: '6.2.1',
[web]   meta: [Object]
[web] }

Simple PR to add the following to CONTRIBUTING.md

6. Generate the database schema.
    ```sh
    yarn dev:prisma:migrate:dev
    ```

@coderabbitai
Copy link

coderabbitai bot commented Nov 5, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Furbreeze Furbreeze changed the title Adding additional step for generating database schema in CONTRIBUTING.md fix(docs): Adding additional step for generating database schema in CONTRIBUTING.md Nov 5, 2025
Copy link
Contributor

@brendan-kellam brendan-kellam left a comment

Choose a reason for hiding this comment

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

Good catch thanks!

@brendan-kellam brendan-kellam merged commit 5f5690e into sourcebot-dev:main Nov 6, 2025
4 of 5 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.

2 participants