DB Migrations (#67)
This commit is contained in:
parent
e21471a193
commit
be5a17e993
127 changed files with 7917 additions and 1456 deletions
|
|
@ -19,6 +19,7 @@ package cmd
|
|||
import (
|
||||
"code.vikunja.io/api/pkg/log"
|
||||
"code.vikunja.io/api/pkg/mail"
|
||||
"code.vikunja.io/api/pkg/migration"
|
||||
"code.vikunja.io/api/pkg/models"
|
||||
"code.vikunja.io/api/pkg/routes"
|
||||
"code.vikunja.io/api/pkg/swagger"
|
||||
|
|
@ -43,6 +44,9 @@ var webCmd = &cobra.Command{
|
|||
// Set logger
|
||||
log.InitLogger()
|
||||
|
||||
// Run the migrations
|
||||
migration.Migrate(nil)
|
||||
|
||||
// Set Engine
|
||||
err := models.SetEngine()
|
||||
if err != nil {
|
||||
|
|
|
|||
Reference in a new issue