diff --git a/backend/prisma/migrations/20220617021322_init/migration.sql b/backend/prisma/migrations/20220617021322_init/migration.sql new file mode 100644 index 0000000000000000000000000000000000000000..2a38dfecbe1674c5ffe2a1aa05ece6da94e7bef6 --- /dev/null +++ b/backend/prisma/migrations/20220617021322_init/migration.sql @@ -0,0 +1,12 @@ +/* + Warnings: + + - Changed the type of `publishedAt` on the `Movie` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required. + +*/ +-- AlterTable +ALTER TABLE "Movie" DROP COLUMN "publishedAt", +ADD COLUMN "publishedAt" INTEGER NOT NULL; + +-- CreateIndex +CREATE UNIQUE INDEX "Movie_originalName_publishedAt_directorId_key" ON "Movie"("originalName", "publishedAt", "directorId");