Skip to content

Commit d035b63

Browse files
committed
update
1 parent ae63b06 commit d035b63

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/self-hosting/development.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ You can run the built server and client using `pnpm nx run server:start`. The pr
6666
Check the `package.json` of each app to learn more about all the available commands.
6767

6868
#### Migrations
69-
During development, you have to run the latest migrations manually. These are the usefully migration commands.
69+
70+
In development mode, you have to run the latest migrations manually. These are the useful migration commands.
7071

7172
```bash
7273
# To run all pending database migrations
@@ -87,7 +88,12 @@ $ pnpm nx run server:migration:create migration_name_here
8788

8889
Migrations are stored inside the `apps/server/src/database/migrations` directory.
8990

91+
If you make changes to the database, e.g.creating a new table or column, you will have to regenerate the db types with
92+
```bash
93+
pnpm nx run server:migration:codegen
94+
```
95+
9096
The project does not make use of any ORM. We use the [Kysely](https://github.com/kysely-org/kysely) query builder to build typesafe sql queries.
9197

92-
Ps: If you wish to make code contributions to Docmost, you will need to accept our Contributor License Agreement (CLA).
98+
**Ps:** If you wish to make code contributions to Docmost, you will need to accept our Contributor License Agreement (CLA) before your PR can be accepted.
9399

0 commit comments

Comments
 (0)