Renamed migrate-db to migrate

This commit is contained in:
Michael Mayer 2018-09-18 15:21:22 +02:00
parent 5e12c48de2
commit 982d43f973
4 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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:

View file

@ -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

View file

@ -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)