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 <[email protected]>
This commit is contained in:
1 parent
c3dc18643e
commit
a73187d46b
2 files changed
+22
-6
No files matched your search
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
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;
|
||||
Reference in new issue
Block a user