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 command 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 π