Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #11 from tranchitella/migrate
Browse files Browse the repository at this point in the history
Fix: implement the migrate command
  • Loading branch information
tranchitella committed Nov 25, 2021
2 parents 4d91949 + b3fbf99 commit f0d3421
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,10 @@ func cmdServer(args *cli.Context) error {
}

func cmdMigrate(args *cli.Context) error {
return nil
mgoConfig := store.NewConfig().SetAutomigrate(true)
dataStore, err := store.SetupDataStore(mgoConfig)
if err != nil {
return err
}
return dataStore.Close()
}

0 comments on commit f0d3421

Please sign in to comment.