fix file size limit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
-- Add variant column for multiple APK builds per version (universal, arm64-v8a, etc.)
|
||||
ALTER TABLE "AppRelease" ADD COLUMN "variant" TEXT NOT NULL DEFAULT 'universal';
|
||||
|
||||
DROP INDEX IF EXISTS "AppRelease_platform_version_key";
|
||||
DROP INDEX IF EXISTS "AppRelease_platform_versionCode_key";
|
||||
|
||||
CREATE UNIQUE INDEX "AppRelease_platform_versionCode_variant_key" ON "AppRelease"("platform", "versionCode", "variant");
|
||||
CREATE INDEX "AppRelease_platform_versionCode_isPublished_idx" ON "AppRelease"("platform", "versionCode", "isPublished");
|
||||
@@ -51,6 +51,7 @@ model AppRelease {
|
||||
platform AppReleasePlatform
|
||||
version String
|
||||
versionCode Int
|
||||
variant String @default("universal")
|
||||
fileName String
|
||||
storageKey String @unique
|
||||
fileSize BigInt
|
||||
@@ -61,9 +62,9 @@ model AppRelease {
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@unique([platform, version])
|
||||
@@unique([platform, versionCode])
|
||||
@@unique([platform, versionCode, variant])
|
||||
@@index([platform, isPublished, createdAt])
|
||||
@@index([platform, versionCode, isPublished])
|
||||
}
|
||||
|
||||
model User {
|
||||
|
||||
Reference in New Issue
Block a user