fix: error in schema
Some checks failed
Deploy to GitHub Pages / build_site (push) Failing after 36s
Some checks failed
Deploy to GitHub Pages / build_site (push) Failing after 36s
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
@ -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(),
|
||||
|
Reference in New Issue
Block a user