From 95f1a8f721c52ebec807bd31ba0dec879851fc85 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 31 Mar 2019 21:19:36 +0200 Subject: [PATCH] Fixed highlight --- docs/content/doc/development/migrations.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/doc/development/migrations.md b/docs/content/doc/development/migrations.md index 198331fe3..9b574f649 100644 --- a/docs/content/doc/development/migrations.md +++ b/docs/content/doc/development/migrations.md @@ -25,9 +25,9 @@ and a more in-depth description of what the migration actually does. To easily get a new id, run the following on any unix system: -```bash +{{< highlight bash >}} date +%Y%m%d%H%M%S -``` +{{< /highlight >}} New migrations should be added via the `init()` function to the `migrations` variable. All migrations are sorted before being executed, since `init()` does not guarantee the order. @@ -37,7 +37,7 @@ to ensure it will be created on new installations. ### Example -```go +{{< highlight golang >}} package migration import ( @@ -66,6 +66,6 @@ func init() { }, }) } -``` +{{< /highlight >}} You should always copy the changed parts of the struct you're changing when adding migraitons. \ No newline at end of file