Overview of Drizzle Migration Strategies
Drizzle supports two primary philosophies for managing database schemas:
- Database-First: The database schema is the source of truth. You manage the schema directly in the database or via external tools, and then pull that schema into your TypeScript code.
- Code-First: The TypeScript schema definition is the source of truth and is version-controlled. You define the schema in code and apply it to the database using Drizzle tools.