TIL

drizzle の meta は Git 管理に含めるべき

drizzle

meta の中には _journal.json と 0000_snapshot.json といういかにも怪しい生成物が作られる。ビルド成果物みたいな見た目をしていてて、差分が大きく出そうなブツなので ignore したいが、これは migration の整合性確認 に使われるものなので Git で管理しないといけない。

These migrations are stored in the drizzle/migrations directory, as specified in your drizzle.config.ts. This directory will contain the SQL files necessary to update your database schema and a meta folder for storing snapshots of the schema at different migration stages.

https://github.com/drizzle-team/drizzle-orm-docs/blob/main/src/content/docs/tutorials/drizzle-with-db/drizzle-with-vercel.mdx

← Back