Skip to content

Commit f08ed2d

Browse files
authored
Feature/add isActive flag to asset profile model (ghostfolio#4479)
* Add isActive to SymbolProfile model * Update changelog
1 parent c9e8eb4 commit f08ed2d

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
### Added
11+
12+
- Added the `isActive` flag to the asset profile model
13+
1014
### Changed
1115

1216
- Improved the language localization for German (`de`)

apps/api/src/app/import/import.service.ts

+2
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ export class ImportService {
300300
figiShareClass,
301301
holdings,
302302
id,
303+
isActive,
303304
isin,
304305
name,
305306
scraperConfiguration,
@@ -375,6 +376,7 @@ export class ImportService {
375376
figiShareClass,
376377
holdings,
377378
id,
379+
isActive,
378380
isin,
379381
name,
380382
scraperConfiguration,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- AlterTable
2+
ALTER TABLE "SymbolProfile" ADD COLUMN "isActive" BOOLEAN NOT NULL DEFAULT true;
3+
4+
-- CreateIndex
5+
CREATE INDEX "SymbolProfile_isActive_idx" ON "SymbolProfile"("isActive");

prisma/schema.prisma

+2
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ model SymbolProfile {
181181
figiShareClass String?
182182
holdings Json? @default("[]")
183183
id String @id @default(uuid())
184+
isActive Boolean @default(true)
184185
isin String?
185186
name String?
186187
updatedAt DateTime @updatedAt
@@ -199,6 +200,7 @@ model SymbolProfile {
199200
@@index([currency])
200201
@@index([cusip])
201202
@@index([dataSource])
203+
@@index([isActive])
202204
@@index([isin])
203205
@@index([name])
204206
@@index([symbol])

0 commit comments

Comments
 (0)