You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/self-hosting/development.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,8 @@ You can run the built server and client using `pnpm nx run server:start`. The pr
66
66
Check the `package.json` of each app to learn more about all the available commands.
67
67
68
68
#### 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.
70
71
71
72
```bash
72
73
# To run all pending database migrations
@@ -87,7 +88,12 @@ $ pnpm nx run server:migration:create migration_name_here
87
88
88
89
Migrations are stored inside the `apps/server/src/database/migrations` directory.
89
90
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
+
90
96
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.
91
97
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.
0 commit comments