drizzle-kit drop can’t find journal.json of a migration
Hey, when I try to run drizle-kit drop, get this error:
And I know this file exists (screenshot)
Thanks for any tips!
drizzle-kit drop
drizzle-kit: v0.20.14
drizzle-orm: v0.29.3
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/foo/bar/foo-bar/drizzle-neon/drizzle.config.ts'
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/foo/bar/foo-bar/drizzle-neon/drizzle.config.ts'
node:fs:453
return binding.readFileUtf8(path, stringToFlags(options.flag));
^
Error: ENOENT: no such file or directory, open '/src/db/migrations/meta/_journal.json'
at readFileSync (node:fs:453:20)
at dropMigration (/Users/foo/bar/foo-bar/drizzle-neon/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:62303:59)
at Command.<anonymous> (/Users/foo/bar/foo-bar/drizzle-neon/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:63682:9) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/src/db/migrations/meta/_journal.json'
}
Node.js v20.10.0
drizzle-kit drop
drizzle-kit: v0.20.14
drizzle-orm: v0.29.3
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/foo/bar/foo-bar/drizzle-neon/drizzle.config.ts'
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/foo/bar/foo-bar/drizzle-neon/drizzle.config.ts'
node:fs:453
return binding.readFileUtf8(path, stringToFlags(options.flag));
^
Error: ENOENT: no such file or directory, open '/src/db/migrations/meta/_journal.json'
at readFileSync (node:fs:453:20)
at dropMigration (/Users/foo/bar/foo-bar/drizzle-neon/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:62303:59)
at Command.<anonymous> (/Users/foo/bar/foo-bar/drizzle-neon/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:63682:9) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/src/db/migrations/meta/_journal.json'
}
Node.js v20.10.0
0 Replies