-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ add migration to turn uuid required
- Loading branch information
1 parent
37cc727
commit c25e955
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
prisma/migrations/20240603234056_update_uuid_to_be_required/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,12 @@ | ||
/* | ||
Warnings: | ||
- A unique constraint covering the columns `[uuid]` on the table `Shelter` will be added. If there are existing duplicate values, this will fail. | ||
- Made the column `uuid` on table `Shelter` required. This step will fail if there are existing NULL values in that column. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "Shelter" ALTER COLUMN "uuid" SET NOT NULL; | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "Shelter_uuid_key" ON "Shelter"("uuid"); |
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