updated docs

[skip ci]
This commit is contained in:
silverqx
2022-05-11 15:25:00 +02:00
parent ca3c217eaa
commit 3ddc6c45bd
+12 -1
View File
@@ -193,7 +193,14 @@ If you have already built the `tom` application then you can generate a migratio
tom make:migration create_posts_table
```
If you want, you can also build the `tom` application without the migrations, simply comment out the `migrations()` method and the corresponding `#include "migrations/xyz.hpp"` files.
Below is the expected folders structure for the migrations. The [`migrations.pri`](#migrations-source-files) file is used only by the `qmake` build system and is not needed with `CMake` builds.
```text
tom/
└── database/
├── migrations/
└── migrations.pri
```
Let's create the first migration manually.
@@ -247,6 +254,10 @@ And paste the following code.
} // namespace Migrations
:::info
If you want, you can also build the `tom` application without the migrations, simply comment out the `migrations()` method and the corresponding `#include "migrations/xyz.hpp"` files.
:::
## Migrations with CMake
Create a folder for the `cmake` build.