diff --git a/package.json b/package.json index 4675ead..25f2ee1 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "express": "^4.18.1", "form-urlencoded": "^6.0.6", "iconv-lite": "^0.6.3", + "long": "^5.2.0", "moment": "^2.29.4", "pem": "^1.14.6", "protobufjs": "^7.0.0", diff --git a/prisma/migrations/20220718120153_losebits/migration.sql b/prisma/migrations/20220718120153_losebits/migration.sql new file mode 100644 index 0000000..c989ee8 --- /dev/null +++ b/prisma/migrations/20220718120153_losebits/migration.sql @@ -0,0 +1,3 @@ +-- AlterTable +ALTER TABLE "Car" ALTER COLUMN "stLoseBits" SET DEFAULT 0, +ALTER COLUMN "stLoseBits" SET DATA TYPE BIGINT; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 95c14ec..06d42a9 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -92,7 +92,7 @@ model Car { stClearBits Int @default(0) stClearDivCount Int @default(0) stClearCount Int @default(0) - stLoseBits Int @default(0) + stLoseBits BigInt @default(0) stConsecutiveWins Int @default(0) stConsecutiveWinsMax Int @default(0) stCompleted100Episodes Boolean @default(false) diff --git a/yarn.lock b/yarn.lock index 5c4508e..bddde5b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -825,7 +825,7 @@ long@^4.0.0: resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28" integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA== -long@^5.0.0: +long@^5.0.0, long@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/long/-/long-5.2.0.tgz#2696dadf4b4da2ce3f6f6b89186085d94d52fd61" integrity sha512-9RTUNjK60eJbx3uz+TEGF7fUr29ZDxR5QzXcyDpeSfeH28S9ycINflOgOlppit5U+4kNTe83KQnMEerw7GmE8w==