diff --git a/.travis.yml b/.travis.yml index bd4098ffe..ac52466ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ before_script: - docker-compose -f docker-compose.travis.yml up -d --build script: - - docker-compose -f docker-compose.travis.yml exec photoprism make migrate-db test + - docker-compose -f docker-compose.travis.yml exec photoprism make migrate test after_script: - docker-compose -f docker-compose.travis.yml down diff --git a/Makefile b/Makefile index 87cc405c6..3e569e4b2 100644 --- a/Makefile +++ b/Makefile @@ -31,8 +31,8 @@ js: (cd frontend && env NODE_ENV=production npm run build) start: $(GORUN) cmd/photoprism/photoprism.go start -migrate-db: - $(GORUN) cmd/photoprism/photoprism.go migrate-db +migrate: + $(GORUN) cmd/photoprism/photoprism.go migrate test: $(GOTEST) -v ./... clean: diff --git a/README.md b/README.md index 4ca457b33..1dffd8a05 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ USAGE: COMMANDS: config Displays global configuration values start Starts web server - migrate-db Automatically migrates / initializes database + migrate Automatically migrates / initializes database import Imports photos index Re-indexes all originals convert Converts RAW originals to JPEG diff --git a/cmd/photoprism/photoprism.go b/cmd/photoprism/photoprism.go index 6afbc1a68..d36baf9c4 100644 --- a/cmd/photoprism/photoprism.go +++ b/cmd/photoprism/photoprism.go @@ -99,7 +99,7 @@ func main() { }, }, { - Name: "migrate-db", + Name: "migrate", Usage: "Automatically migrates / initializes database", Action: func(context *cli.Context) error { conf := photoprism.NewConfig(context)