improvement(code-structure): move db into separate package (#1364)

* improvement(code-structure): move db into separate package

* make db separate package

* remake bun lock

* update imports to not maintain two separate ones

* fix CI for tests by adding dummy url

* vercel build fix attempt

* update bun lock

* regenerate bun lock

* fix mocks

* remove db commands from apps/sim package json
This commit is contained in:
Vikhyath Mondreti
2025-09-17 15:41:13 -07:00
committed by GitHub
parent 325a666a8b
commit 9de7a00373
400 changed files with 1054 additions and 966 deletions

View File

@@ -125,10 +125,11 @@ Update your `.env` file with the database URL:
DATABASE_URL="postgresql://postgres:your_password@localhost:5432/simstudio"
```
4. Set up the database:
4. Set up the database (from packages/db):
```bash
bunx drizzle-kit migrate
cd packages/db
bunx drizzle-kit migrate --config=./drizzle.config.ts
```
5. Start the development servers: