From 6432e007d3123eb10a8643107e04f948d9cd5c42 Mon Sep 17 00:00:00 2001 From: David Requeno Date: Thu, 11 Sep 2025 19:24:57 -0600 Subject: [PATCH] feat: migrate to Prisma configuration file (#5472) Add prisma.config.ts to centralize Prisma setup; remove prisma config from package.json; seed via node prisma/seed.mts --- CHANGELOG.md | 20 +++----------------- package.json | 3 --- prisma.config.ts | 11 +++++++++++ 3 files changed, 14 insertions(+), 20 deletions(-) create mode 100644 prisma.config.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 31297844e..2eb713711 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,29 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## 2.198.0 - 2025-09-11 +## Unreleased ### Changed -- Extended the variations of the interstitials for the subscription -- Renamed the job identifier column in the jobs queue view of the admin control panel -- Refactored the markets page to standalone -- Refactored the fear and greed index component to standalone +- Migrated to Prisma Configuration File (`prisma.config.ts`) to prepare for Prisma 7 - Refactored the header component to standalone -- Refactored the investment chart component to standalone - Refactored the rule component to standalone - Refactored the rules component to standalone -- Refactored the subscription interstitial dialog component to standalone -- Removed the `IonIcon` import from the landing page -- Improved the language localization for German (`de`) -- Upgraded `angular` from version `20.1.3` to `20.2.4` -- Upgraded `eslint` dependencies -- Upgraded `Nx` from version `21.3.9` to `21.5.1` -- Upgraded `storybook` from version `9.0.17` to `9.1.5` - -### Fixed - -- Fixed the holdings table on the public page ## 2.197.0 - 2025-09-07 @@ -35,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Enabled automatic data gathering for custom currencies added via the currency management in the admin control panel - Added a _Storybook_ story for the world map chart component +- Migrated to Prisma Configuration File (`prisma.config.ts`) to prepare for Prisma 7 ### Changed diff --git a/package.json b/package.json index 9a68c6cc6..99d924332 100644 --- a/package.json +++ b/package.json @@ -209,8 +209,5 @@ }, "engines": { "node": ">=22.18.0" - }, - "prisma": { - "seed": "node prisma/seed.mts" } } diff --git a/prisma.config.ts b/prisma.config.ts new file mode 100644 index 000000000..fb2e33933 --- /dev/null +++ b/prisma.config.ts @@ -0,0 +1,11 @@ +import 'dotenv/config'; +import { join } from 'node:path'; +import { defineConfig } from 'prisma/config'; + +export default defineConfig({ + schema: join('prisma', 'schema.prisma'), + migrations: { + path: join('prisma', 'migrations'), + seed: 'node prisma/seed.mts' + } +});