Troubles during migrations using drizzle and a neon serverless database
Hello im really new to drizzle and i already learned how to setup a scheme but im having troubles when i want to migrate it to the neon postgressql database.
Error: No database connection string was provided to
neon(). Perhaps an environment variable has not been set?
This is how my migration file looks like:
3 Replies
my
.env.local
is setup as it should i think
DATABASE_URL=postgresql://user:password@thehost/mydbname
nevermind i fixed it but i'll leave the ticket here. i added this to my migrate.ts
hello I'm also really new to drizzle .I'm also Having a similar issue while migrating it to neon
In my case It's showing Argument of type 'NeonQueryFunction<false, false>' is not assignable to parameter of type 'NeonQueryFunction<boolean, boolean>'.
at line
Try adding a type like:
Alternatively, remove the
sql
constant and just place the neon
call inside the drizzle
call, like: