1 Commits

Author SHA1 Message Date
b9a154dde8 fix: null strings in setup versions 2025-02-12 12:05:47 +11:00
2 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,20 @@
/*
Warnings:
- Made the column `launchCommand` on table `GameVersion` required. This step will fail if there are existing NULL values in that column.
- Made the column `setupCommand` on table `GameVersion` required. This step will fail if there are existing NULL values in that column.
*/
UPDATE "GameVersion"
SET "launchCommand" = ''
WHERE "launchCommand" is NULL;
UPDATE "GameVersion"
SET "setupCommand" = ''
WHERE "launchCommand" is NULL;
-- AlterTable
ALTER TABLE "GameVersion" ALTER COLUMN "launchCommand" SET NOT NULL,
ALTER COLUMN "launchCommand" SET DEFAULT '',
ALTER COLUMN "setupCommand" SET NOT NULL,
ALTER COLUMN "setupCommand" SET DEFAULT '';

View File

@ -46,9 +46,9 @@ model GameVersion {
platform Platform
launchCommand String? // Command to run to start. Platform-specific. Windows games on Linux will wrap this command in Proton/Wine
launchCommand String @default("") // Command to run to start. Platform-specific. Windows games on Linux will wrap this command in Proton/Wine
launchArgs String[]
setupCommand String? // Command to setup game (dependencies and such)
setupCommand String @default("") // Command to setup game (dependencies and such)
setupArgs String[]
onlySetup Boolean @default(false)