Browse Source
Feature/add default values for countries and sectors (#1133)
* Add default values
* Add database validation script
* Update changelog
pull/1135/head
Thomas Kaul
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
8 additions and
2 deletions
-
CHANGELOG.md
-
package.json
-
prisma/migrations/20220808191912_added_default_value_for_countries_of_symbol_profile_overrides/migration.sql
-
prisma/migrations/20220808192002_added_default_value_for_sectors_of_symbol_profile_overrides/migration.sql
-
prisma/schema.prisma
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
### Added |
|
|
### Added |
|
|
|
|
|
|
|
|
- Added `url` to the symbol profile overrides model for manual adjustments |
|
|
- Added `url` to the symbol profile overrides model for manual adjustments |
|
|
|
|
|
- Added default values for `countries` and `sectors` of the symbol profile overrides model |
|
|
|
|
|
|
|
|
### Changed |
|
|
### Changed |
|
|
|
|
|
|
|
|
|
@ -26,6 +26,7 @@ |
|
|
"database:push": "prisma db push", |
|
|
"database:push": "prisma db push", |
|
|
"database:seed": "prisma db seed", |
|
|
"database:seed": "prisma db seed", |
|
|
"database:setup": "yarn database:push && yarn database:seed && yarn database:baseline", |
|
|
"database:setup": "yarn database:push && yarn database:seed && yarn database:baseline", |
|
|
|
|
|
"database:validate": "prisma validate", |
|
|
"dep-graph": "nx dep-graph", |
|
|
"dep-graph": "nx dep-graph", |
|
|
"e2e": "ng e2e", |
|
|
"e2e": "ng e2e", |
|
|
"format": "nx format:write", |
|
|
"format": "nx format:write", |
|
|
|
@ -0,0 +1,2 @@ |
|
|
|
|
|
-- AlterTable |
|
|
|
|
|
ALTER TABLE "SymbolProfileOverrides" ALTER COLUMN "countries" SET DEFAULT '[]'; |
|
@ -0,0 +1,2 @@ |
|
|
|
|
|
-- AlterTable |
|
|
|
|
|
ALTER TABLE "SymbolProfileOverrides" ALTER COLUMN "sectors" SET DEFAULT '[]'; |
|
@ -133,9 +133,9 @@ model SymbolProfile { |
|
|
model SymbolProfileOverrides { |
|
|
model SymbolProfileOverrides { |
|
|
assetClass AssetClass? |
|
|
assetClass AssetClass? |
|
|
assetSubClass AssetSubClass? |
|
|
assetSubClass AssetSubClass? |
|
|
countries Json? |
|
|
countries Json? @default("[]") |
|
|
name String? |
|
|
name String? |
|
|
sectors Json? |
|
|
sectors Json? @default("[]") |
|
|
url String? |
|
|
url String? |
|
|
symbolProfileId String @id |
|
|
symbolProfileId String @id |
|
|
updatedAt DateTime @updatedAt |
|
|
updatedAt DateTime @updatedAt |
|
|