From 6447e646d9046b0a601f8ed31f57a365c74d0935 Mon Sep 17 00:00:00 2001 From: Matheus Dias Date: Mon, 18 Dec 2023 22:42:54 -0300 Subject: [PATCH] chore: change deezer_id int type --- package-lock.json | 4 ++-- .../20231219014228_deezer_id_bigint/migration.sql | 8 ++++++++ prisma/schema.prisma | 6 +++--- 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 prisma/migrations/20231219014228_deezer_id_bigint/migration.sql diff --git a/package-lock.json b/package-lock.json index ee9b062..b2b0715 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "content-manager", - "version": "3.3.2", + "version": "3.3.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "content-manager", - "version": "3.3.2", + "version": "3.3.3", "license": "GPL-3.0", "dependencies": { "@prisma/client": "^4.0.0", diff --git a/prisma/migrations/20231219014228_deezer_id_bigint/migration.sql b/prisma/migrations/20231219014228_deezer_id_bigint/migration.sql new file mode 100644 index 0000000..9f60e10 --- /dev/null +++ b/prisma/migrations/20231219014228_deezer_id_bigint/migration.sql @@ -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; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index d047972..64decb7 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -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? @@ -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()) @@ -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