Skip to content

fix(setup-script): add database schema initialization to setup script#20063

Open
ratishjain12 wants to merge 1 commit intotwentyhq:mainfrom
ratishjain12:fix/setup-script-database-initialization
Open

fix(setup-script): add database schema initialization to setup script#20063
ratishjain12 wants to merge 1 commit intotwentyhq:mainfrom
ratishjain12:fix/setup-script-database-initialization

Conversation

@ratishjain12
Copy link
Copy Markdown
Contributor

@ratishjain12 ratishjain12 commented Apr 26, 2026

fixes #20062

Changes Made

packages/twenty-utils/setup-dev-env.sh:

  • Added step 4 to header comment (line 11)
  • Added schema_exists() helper function (lines 83-91) — checks if core schema exists in default database
  • Added schema initialization step (lines 255-270) — runs npx nx database:reset twenty-server when schema doesn't exist
  • Fixed conflicting error message (line 267)

CLAUDE.md:

  • Updated line 210 to document that the script now initializes database schema

@github-actions
Copy link
Copy Markdown
Contributor

Welcome!

Hello there, congrats on your first PR! We're excited to have you contributing to this project.
By submitting your Pull Request, you acknowledge that you agree with the terms of our Contributor License Agreement.

Generated by 🚫 dangerJS against 170af76

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

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.

Setup script doesn't initialize database schema

1 participant