Yaakov
10/13/2021, 6:28 PMCHECK CONSTRAINT
in my schema.prisma
file, since SQL Server doesn't support ENUM
. Does anyone know how this can be accomplished?
Is there a way to include raw SQL as part of the schema?Ryan
10/14/2021, 5:48 AM.sql
files as of now. To add a check constraint:
1. Create a migration using prisma migrate dev --create-only
2. Edit the .sql
file and add the check constraint
3. Apply the migration with prisma migrate dev
.Yaakov
10/14/2021, 8:05 PMRyan
10/15/2021, 5:06 AMYaakov
10/15/2021, 1:34 PM