Update workflows and documentation for Prisma schema path

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-03 20:29:02 +00:00
parent 4e2ed82164
commit 3711e0c9b9
4 changed files with 25 additions and 10 deletions

View File

@@ -76,7 +76,7 @@ jobs:
DATABASE_URL: file:./dev.db
- name: Validate Prisma Schema
run: bunx prisma validate
run: bunx prisma validate --schema=../../prisma/schema.prisma
env:
DATABASE_URL: file:./dev.db

View File

@@ -66,7 +66,7 @@ jobs:
DATABASE_URL: file:./dev.db
- name: Validate Prisma Schema
run: bunx prisma validate
run: bunx prisma validate --schema=../../prisma/schema.prisma
env:
DATABASE_URL: file:./dev.db

View File

@@ -77,7 +77,7 @@ jobs:
DATABASE_URL: file:./dev.db
- name: Validate database schema
run: bunx prisma validate
run: bunx prisma validate --schema=../../prisma/schema.prisma
env:
DATABASE_URL: file:./dev.db

View File

@@ -76,10 +76,16 @@ This spins up:
```bash
# Clone and install
git clone <repo>
cd metabuilder/frontends/nextjs
npm install
cd metabuilder
# Set up database
# Option 1: Run from root (recommended for quick setup)
npm install
npm run db:generate
npm run db:push
# Option 2: Run from frontends/nextjs
cd frontends/nextjs
npm install
npm run db:generate
npm run db:push
@@ -87,8 +93,12 @@ npm run db:push
cd ../../deployment
./scripts/bootstrap-system.sh
# Start development
cd ../frontends/nextjs
# Start development (from root)
cd ..
npm run dev
# Or from frontends/nextjs
cd frontends/nextjs
npm run dev
```
@@ -492,11 +502,16 @@ const result = await adapter.list('InstalledPackage', {
### Database Commands
```bash
# Development
# Development (can be run from root or frontends/nextjs)
npm run db:generate # Generate Prisma client
npm run db:push # Apply schema changes
npm run db:migrate # Create migration
npm run db:studio # Open database UI
# From root directory
npm run db:generate # Delegates to frontends/nextjs
# From frontends/nextjs directory
npm run db:generate # Uses --schema=../../prisma/schema.prisma
# Production (via Docker)
docker exec -it metabuilder-postgres-prod psql -U metabuilder