Quick start
Lets build a quick start app with PostgreSQL
+ postgresjs
and run our first migration.
The first thing we need to do is to install drizzle-orm
and drizzle-kit
:
Lets declare our schema.ts
:
Now lets add drizzle configuration file:
Add generate
and migrate
commands to package.json
and run our first migrations generation:
Done! We now have our first SQL migration file 🥳
Now lets run our first migration to the database:
That’s it, folks!
My personal congratulations 🎉