Skip to content

Commit

Permalink
chore: change deezer_id int type
Browse files Browse the repository at this point in the history
  • Loading branch information
metehus committed Dec 19, 2023
1 parent 4809faa commit 6447e64
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- AlterTable
ALTER TABLE "Album" ALTER COLUMN "deezer_id" SET DATA TYPE BIGINT;

-- AlterTable
ALTER TABLE "Artist" ALTER COLUMN "deezer_id" SET DATA TYPE BIGINT;

-- AlterTable
ALTER TABLE "Track" ALTER COLUMN "deezer_id" SET DATA TYPE BIGINT;
6 changes: 3 additions & 3 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ model Artist {
similar String[] @db.Text
spotify_id String? @db.Char(22)
deezer_id Int?
deezer_id BigInt? @db.BigInt
created_at DateTime @default(now())
updated_at DateTime?
Expand All @@ -92,7 +92,7 @@ model Album {
tags String[] @db.Text
spotify_id String? @db.Char(22)
deezer_id Int?
deezer_id BigInt? @db.BigInt
release_date String? @db.VarChar(16)
created_at DateTime @default(now())
Expand Down Expand Up @@ -120,7 +120,7 @@ model Track {
album String? @db.Text
spotify_id String? @db.Char(22)
deezer_id Int?
deezer_id BigInt? @db.BigInt
genius_id Int?
tags String[] @db.Text
Expand Down

0 comments on commit 6447e64

Please sign in to comment.