aboutsummaryrefslogtreecommitdiffstats
path: root/docs/versioned_docs/version-v0.24.0/07-Development/03-database.md
blob: 40e2d164ce21a44431bad56bbe92573ff764639c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# Database Migrations

- The database schema lives in `packages/db/schema.ts`.
- Changing the schema, requires a migration.
- You can generate the migration by running `pnpm drizzle-kit generate:sqlite` in the `packages/db` dir.
- You can then apply the migration by running `pnpm run migrate`.


## Drizzle Studio

You can start the drizzle studio by running `pnpm db:studio` in the root of the repo.