Manually fix migrations and startup

This commit is contained in:
Zoe Roux
2024-11-08 23:18:38 +01:00
parent 8d01a87b6c
commit d3fc3894bc
5 changed files with 17 additions and 10 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export const db = drizzle({
database: process.env.POSTGRES_DB ?? "kyooDB",
host: process.env.POSTGRES_SERVER ?? "postgres",
port: Number(process.env.POSTGRES_PORT) || 5432,
ssl: true,
ssl: false,
},
casing: "snake_case",
});
+1 -1
View File
@@ -70,7 +70,7 @@ export const shows = schema.table(
(t) => ({
ratingValid: check(
"ratingValid",
sql`0 <= ${t.rating} && ${t.rating} <= 100`,
sql`${t.rating} between 0 and 100`,
),
runtimeValid: check("runtimeValid", sql`0 <= ${t.runtime}`),
}),