Michael Mayer 10859ee695 Moved perceptual hash from photo to file model; code clean-up (go fmt)
- Files might show different details of the full photo
2018-09-27 08:59:53 +02:00

26 lines
441 B
Go

package commands
import (
"fmt"
"github.com/photoprism/photoprism/internal/photoprism"
"github.com/urfave/cli"
)
var MigrateCommand = cli.Command{
Name: "migrate",
Usage: "Automatically migrates / initializes database",
Action: migrateAction,
}
func migrateAction(context *cli.Context) error {
conf := photoprism.NewConfig(context)
fmt.Println("Migrating database...")
conf.MigrateDb()
fmt.Println("Done.")
return nil
}