Can I Skip Code-Based Migration and Just Use drizzle-kit migrate?

I’m using Drizzle ORM and noticed there are two ways to run migrations: using the drizzle-kit migrate command and the code-based approach (migrate function).

Do I need both, or can I rely solely on the drizzle-kit migrate command to handle my database migrations?

What even is the difference between the two?

Thanks for the help
Was this page helpful?