From 2419952543a77bbedd485cddb8470058806a1ab8 Mon Sep 17 00:00:00 2001 From: Fabio Benedetti Date: Mon, 10 Feb 2025 09:25:58 +0100 Subject: [PATCH] fix drizzle seed issue (#1072) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Description ### Demo URL ### Type of Change - [ ] New Example - [ ] Example updates (Bug fixes, new features, etc.) - [ ] Other (changes to the codebase, but not to examples) ### New Example Checklist - [ ] 🛫 `npm run new-example` was used to create the example - [ ] 📚 The template wasn't used but I carefuly read the [Adding a new example](https://github.com/vercel/examples#adding-a-new-example) steps and implemented them in the example - [ ] 📱 Is it responsive? Are mobile and tablets considered? --- storage/postgres-drizzle/components/table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/postgres-drizzle/components/table.tsx b/storage/postgres-drizzle/components/table.tsx index 86b5f7e5b9..04e64d2c23 100644 --- a/storage/postgres-drizzle/components/table.tsx +++ b/storage/postgres-drizzle/components/table.tsx @@ -10,7 +10,7 @@ export default async function Table() { try { users = await db.select().from(UsersTable) } catch (e: any) { - if (e.message === `relation "users" does not exist`) { + if (e.message === `relation "profiles" does not exist`) { console.log( 'Table does not exist, creating and seeding it with dummy data now...' )