calcom/prisma/migrations/20211011152041_non_optionals/migration.sql
Omar López a73187d46b
Makes fields with default values not null (#903)
* Makes fields with default values non-optional

* Removes PeriodType enum for now

* Adds missing migrations

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-10-12 11:09:39 +01:00

16 lines
783 B
SQL

/*
Warnings:
- Made the column `periodType` on table `EventType` required. This step will fail if there are existing NULL values in that column.
- Made the column `email` on table `users` required. This step will fail if there are existing NULL values in that column.
- Made the column `weekStart` on table `users` required. This step will fail if there are existing NULL values in that column.
- Made the column `completedOnboarding` on table `users` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "EventType" ALTER COLUMN "periodType" SET NOT NULL;
-- AlterTable
ALTER TABLE "users" ALTER COLUMN "email" SET NOT NULL,
ALTER COLUMN "weekStart" SET NOT NULL,
ALTER COLUMN "completedOnboarding" SET NOT NULL;