# Migration `20201007134933-fix-optional-values` This migration has been generated by Dm1tr1y147 at 10/7/2020, 6:49:33 PM. You can check out the [state of the schema](./schema.prisma) after the migration. ## Database Steps ```sql ALTER TABLE "public"."Answer" ALTER COLUMN "userInput" DROP NOT NULL, ALTER COLUMN "userChoise" DROP NOT NULL ``` ## Changes ```diff diff --git schema.prisma schema.prisma migration 20201006185953-improved-schema-structure..20201007134933-fix-optional-values --- datamodel.dml +++ datamodel.dml @@ -2,9 +2,9 @@ // learn more about it in the docs: https://pris.ly/d/prisma-schema datasource db { provider = "postgres" - url = "***" + url = "***" } generator client { provider = "prisma-client-js" @@ -75,10 +75,10 @@ formId Int? } model Answer { - userInput String - userChoise Int + userInput String? + userChoise Int? type AnswerType id Int @id @default(autoincrement()) FormSubmission FormSubmission? @relation(fields: [formSubmissionId], references: [id]) ```