-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(prisma): mark most brand fields as optional
This patch makes most of the brand fields optional. It is better that these are left as NULL when importing brands than for me to set them to something nonsensical. I will gradually populate these fields as necessary, but their initial absence shouldn't block record creation.
- Loading branch information
1 parent
13e359f
commit 4e67bcd
Showing
2 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
prisma/migrations/20230725040705_make_most_brand_fields_optional/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- AlterTable | ||
ALTER TABLE "Brand" ALTER COLUMN "description" DROP NOT NULL, | ||
ALTER COLUMN "companyId" DROP NOT NULL, | ||
ALTER COLUMN "countryId" DROP NOT NULL, | ||
ALTER COLUMN "tier" DROP NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters