DB Migrations #67

Merged
konrad merged 44 commits from feature/migrations into master 2019-03-29 17:54:36 +00:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit cc1f25c683 - Show all commits

View File

@ -32,6 +32,9 @@ date +%Y%m%d%H%M%S
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.
When you're adding a new struct, you also need to add it to the `models.GetTables()` function
to ensure it will be created on new installations.
### Example
```go