Closed volfadar closed 4 months ago
I believe you are not using the table creator correctly. Try using the function generated by the table creator to create your tables.
export const pgTable = pgTableCreator((name) => `zingfont_${name}`);
@volfadar you are not using pgTableCreator
just like @manjime83 mentioned
(name) => `zingfont_${name}`
Hey, I totally missed @manjime83's new reply! Now it all makes sense why my code wasn't working. Thanks so much to both of you guys! 😄
What version of
drizzle-orm
are you using?0.31.0
What version of
drizzle-kit
are you using?0.22.1
Describe the Bug
here's my code
and when i do
npx drizzle-kit generate
it generate this sql, which are not contain prefix :and here's my drizzle config :
i already tried to remove
node_modules
anddrizzle
folder several times, and domigrate
,push
. several times. the result are the same. there isn't any prefix added.Expected behavior
there must be a prefix right?
Environment & setup
Windows 11 Bun 1.1.12 Next JS 14.2.1 Supabase