db: change anime category number type to number

This commit is contained in:
2026-02-09 18:51:30 -08:00
parent 7b8ccb0e83
commit 2bf5aeb1c0
5 changed files with 12 additions and 5 deletions

View File

@@ -1,4 +1,10 @@
import { index, integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
import {
index,
integer,
real,
sqliteTable,
text,
} from "drizzle-orm/sqlite-core";
/**
* Core `anime` table.
@@ -21,7 +27,7 @@ export const anime = sqliteTable(
// Category object (name + number that can be number|string|null in source)
categoryName: text("category_name").notNull(),
categoryNumber: text("category_number"),
categoryNumber: real("category_number"),
// Names
mainName: text("main_name").notNull(),