1
0
mirror of synced 2024-12-15 00:11:19 +01:00
Bayshore/prisma/migrations/20220729075651_car_crown_unique/migration.sql

15 lines
395 B
MySQL
Raw Normal View History

2022-07-29 11:13:21 +02:00
/*
Warnings:
- A unique constraint covering the columns `[area]` on the table `CarCrown` will be added. If there are existing duplicate values, this will fail.
*/
-- AlterTable
ALTER TABLE "Car" ALTER COLUMN "stLoseBits" SET DEFAULT 0;
-- AlterTable
ALTER TABLE "CarCrown" ALTER COLUMN "trail" SET DEFAULT 0;
-- CreateIndex
CREATE UNIQUE INDEX "CarCrown_area_key" ON "CarCrown"("area");