Postgres-js Migrate - Error: Can't find meta/_journal.json file [SOLVED]
I've gotten drizzle setup and running but I'm unable to run any migrations.
I'm using postgres-js and created a migrate.ts file that i'm executing.
Here is my code:
/lib/migrate.ts
I setup my config file:
./crizzle.config.json
so I've managed to generate some migrations in the migrations-folder but the migrate function is failing.
I've tried different databases, locations, tried to trigger the migration through a trpc api call.
9 Replies
Could you please show migration folder content?
I'm having the same issue
are you sure, that
migrationsFolder
path in migrate function is right?I think I've found out what the issue is, even though the index.ts file is several directories deep, you still have to give the file path as if it was in the root directory if that makes sense
That's the folder. I'll try what Jannis said now.
Its running now, so jannis was right. But it just gets stuck
It wasn't stuck, the connect just stayed open. I added a close on the .then