Schema fixes

This commit is contained in:
jeffvli
2022-11-21 09:58:00 -08:00
parent eb7e259c86
commit 2013c46991
2 changed files with 18 additions and 5 deletions
@@ -0,0 +1,14 @@
/*
Warnings:
- You are about to drop the column `skip` on the `Song` table. All the data in the column will be lost.
*/
-- DropIndex
DROP INDEX "ServerFolder_remoteId_key";
-- AlterTable
ALTER TABLE "Song" DROP COLUMN "skip",
ALTER COLUMN "duration" DROP NOT NULL,
ALTER COLUMN "bitRate" DROP NOT NULL,
ALTER COLUMN "discNumber" DROP NOT NULL;
+4 -5
View File
@@ -210,7 +210,7 @@ model UserServerUrl {
model ServerFolder {
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
name String
remoteId String @unique
remoteId String
enabled Boolean @default(true)
lastScannedAt DateTime?
createdAt DateTime @default(now())
@@ -490,17 +490,16 @@ model Song {
sortName String
releaseDate DateTime?
releaseYear Int?
duration Float
duration Float?
size Int?
lyrics String?
bitRate Int
bitRate Int?
container String
discNumber Int @default(1)
discNumber Int? @default(1)
trackNumber Int?
artistName String?
remoteId String
remoteCreatedAt DateTime?
skip Boolean @default(false)
deleted Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt