Drizzle ORM

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Feb 15 16:53
Editor
Edited
Edited
2025 Oct 21 14:58

Schema-first, not Migration-first

Migration files are not the true schema; TypeScript code is the source of truth for the schema. Therefore, in theory, migrations are regenerable artifacts and don't need to be version controlled in git. However, typically only the migrate command is run in CI/CD, and migrations are kept in git to track migration history.
drizzle/*.sql = Executable SQL history of the declared schema (migration log)
drizzle/meta = Cache for tracking hash/metadata between TypeScript schema and actual DB state
Drizzle ORM Usages
 
 
 
 
 
 
 

Recommendations