Skip to content

Revert "chore(app): remove the duplicated prisma/ setup"#2621

Merged
Marfuen merged 2 commits intomainfrom
mariano/revert-app-prisma-cleanup
Apr 20, 2026
Merged

Revert "chore(app): remove the duplicated prisma/ setup"#2621
Marfuen merged 2 commits intomainfrom
mariano/revert-app-prisma-cleanup

Conversation

@Marfuen
Copy link
Copy Markdown
Contributor

@Marfuen Marfuen commented Apr 20, 2026

This reverts commit f7fb820.

What does this PR do?

  • Fixes #XXXX (GitHub issue number)
  • Fixes COMP-XXXX (Linear issue number - should be visible at the bottom of the GitHub issue description)

Visual Demo (For contributors especially)

A visual demonstration is strongly recommended, for both the original and new change (video / image - any one).

Video Demo (if applicable):

  • Show screen recordings of the issue or feature.
  • Demonstrate how to reproduce the issue, the behavior before and after the change.

Image Demo (if applicable):

  • Add side-by-side screenshots of the original and updated change.
  • Highlight any significant change(s).

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my changes generate no new warnings

Summary by cubic

Reverts the Prisma cleanup and restores an app-local prisma/ in apps/app so the client is generated before next build. Adds a postinstall/build flow to copy schemas and patch generated extensions.

  • Refactors

    • Reintroduced apps/app/prisma/ with prisma.config.ts pointing to prisma/schema and DATABASE_URL.
    • Added minimal prisma/schema/schema.prisma that generates the client to src/generated/prisma and enables postgresqlExtensions (pgcrypto).
    • Updated scripts: db:getschema (copies model files from packages/db), db:generate, build:docker, prebuild, postinstall; they run prisma generate and packages/db/scripts/fix-generated-extensions.js on src/generated/prisma.
    • Updated .gitignore to exclude generated client and copied schema files (only schema.prisma is committed).
  • Migration

    • Ensure DATABASE_URL is set.
    • Run a fresh install to trigger postinstall (or run bun run db:generate).
    • Use build:docker so the client is generated before next build.

Written for commit 5ca5050. Summary will update on new commits.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Ready Ready Preview, Comment Apr 20, 2026 10:04pm
comp-framework-editor Ready Ready Preview, Comment Apr 20, 2026 10:04pm
portal Ready Ready Preview, Comment Apr 20, 2026 10:04pm

Request Review

@Marfuen Marfuen merged commit a1889a1 into main Apr 20, 2026
7 of 10 checks passed
@Marfuen Marfuen deleted the mariano/revert-app-prisma-cleanup branch April 20, 2026 22:01
claudfuen pushed a commit that referenced this pull request Apr 20, 2026
# [3.27.0](v3.26.1...v3.27.0) (2026-04-20)

### Bug Fixes

* **devices:** flag stale device agents as non-compliant + CSV export ([#2612](#2612)) ([0d59e8f](0d59e8f))
* **integration-platform:** preserve VCS url fragments in python matcher ([f820738](f820738))
* **integration-platform:** use toml-aware comment stripping for pyproject.toml ([2cf8979](2cf8979))
* **integrations-catalog:** add global request pacing to prevent 429s ([0dfb793](0dfb793))

### Features

* add compliance timeline to overview (feature flagged) ([26c04d8](26c04d8))
* **integration-platform:** expand validation library detection for sanitized inputs check ([964cb1b](964cb1b))
* **integrations-catalog:** add public catalog ([ea297de](ea297de))

### Reverts

* Revert "chore(app): remove the duplicated prisma/ setup" ([#2621](#2621)) ([a1889a1](a1889a1))
@claudfuen
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.27.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants