mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 00:05:36 +02:00
🐜 fix(db): Add partial controller_support
This commit is contained in:
1
packages/core/migrations/0015_handy_giant_man.sql
Normal file
1
packages/core/migrations/0015_handy_giant_man.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TYPE "public"."controller_support" ADD VALUE 'partial' BEFORE 'unknown';
|
||||
1266
packages/core/migrations/meta/0015_snapshot.json
Normal file
1266
packages/core/migrations/meta/0015_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -106,6 +106,13 @@
|
||||
"when": 1746926498096,
|
||||
"tag": "0014_thin_groot",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 15,
|
||||
"version": "7",
|
||||
"when": 1746928882281,
|
||||
"tag": "0015_handy_giant_man",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -3,7 +3,7 @@ import { timestamps, utc } from "../drizzle/types";
|
||||
import { json, numeric, pgEnum, pgTable, text, unique, varchar } from "drizzle-orm/pg-core";
|
||||
|
||||
export const CompatibilityEnum = pgEnum("compatibility", ["high", "mid", "low", "unknown"])
|
||||
export const ControllerEnum = pgEnum("controller_support", ["full", "unknown"])
|
||||
export const ControllerEnum = pgEnum("controller_support", ["full","partial", "unknown"])
|
||||
|
||||
export const Size =
|
||||
z.object({
|
||||
|
||||
@@ -41,7 +41,7 @@ export namespace BaseGame {
|
||||
example: Examples.BaseGame.primaryGenre
|
||||
}),
|
||||
controllerSupport: z.enum(ControllerEnum.enumValues).openapi({
|
||||
description: "Indicates the level of gamepad/controller compatibility: 'Full', 'Partial', or null for no support",
|
||||
description: "Indicates the level of gamepad/controller compatibility: 'Full', 'Partial', or 'Unkown' for no support",
|
||||
example: Examples.BaseGame.controllerSupport
|
||||
}),
|
||||
compatibility: z.enum(CompatibilityEnum.enumValues).openapi({
|
||||
|
||||
@@ -96,7 +96,7 @@ const base_games = table("base_games")
|
||||
size: json<Size>(),
|
||||
description: string(),
|
||||
primary_genre: string().optional(),
|
||||
controller_support: enumeration<"full" | "unknown">(),
|
||||
controller_support: enumeration<"full" | "partial" | "unknown">(),
|
||||
compatibility: enumeration<"high" | "mid" | "low" | "unknown">(),
|
||||
score: number(),
|
||||
...timestamps
|
||||
|
||||
Reference in New Issue
Block a user