1
0

Add mage command to create a new migration

This commit is contained in:
kolaente
2020-09-04 10:15:33 +02:00
parent e4dd314079
commit 05e237560d
2 changed files with 83 additions and 4 deletions

View File

@ -34,6 +34,7 @@ There are multiple categories of subcommands in the magefile:
* `check`: Contains commands to statically check the source code
* `release`: Contains commands to release Vikunja with everything that's required
* `test`: Contains commands to run all kinds of tests
* `dev`: Contains commands to run development tasks
* `misc`: Commands which do not belong in either of the other categories
## CI
@ -162,6 +163,17 @@ mage test:integration
Runs all integration tests.
## Dev
### Create a new migration
{{< highlight bash >}}
mage dev:create-migration
{{< /highlight >}}
Creates a new migration with the current date.
Will ask for the name of the struct you want to create a migration for.
## Misc
### Format the code