mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Schema fixes
This commit is contained in:
+14
@@ -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;
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user