diff options
Diffstat (limited to 'docs/versioned_docs/version-v0.26.0/07-Development/03-database.md')
| -rw-r--r-- | docs/versioned_docs/version-v0.26.0/07-Development/03-database.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/versioned_docs/version-v0.26.0/07-Development/03-database.md b/docs/versioned_docs/version-v0.26.0/07-Development/03-database.md new file mode 100644 index 00000000..d7a15b62 --- /dev/null +++ b/docs/versioned_docs/version-v0.26.0/07-Development/03-database.md @@ -0,0 +1,10 @@ +# 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 run db:generate --name description_of_schema_change` in the root dir. +- You can then apply the migration by running `pnpm run db:migrate`. + +## Drizzle Studio + +You can start the drizzle studio by running `pnpm run db:studio` in the root of the repo. |
