fix: error in schema
Some checks failed
Deploy to GitHub Pages / build_site (push) Failing after 36s

This commit is contained in:
2024-12-20 12:46:44 +01:00
parent 2814165ee6
commit ec037a3bbd
5 changed files with 11 additions and 10 deletions

View File

@ -16,6 +16,7 @@ export const db = drizzle({
schema,
});
export function migrateDb() {
return migrate(db, { migrationsFolder: "drizzle" });
export async function migrateDb() {
await migrate(db, { migrationsFolder: "drizzle" });
console.log("Database migrated");
}

View File

@ -22,7 +22,7 @@ const bytea = customType<{
export const nodeTable = pgTable("nodes", {
id: serial().primaryKey(),
userId: varchar().notNull().references(() => usersTable.id),
userId: varchar().notNull().references(() => usersTable.name),
systemId: varchar().notNull(),
nodeId: varchar().notNull(),
content: bytea().notNull(),