Skip to content

Commit

Permalink
[installer]: change db-migration command
Browse files Browse the repository at this point in the history
The "migrations" command is now deprecated, replaced in favour of
"migration". Also added in the "show" command to display the migration
files that will show the migrations that will be applied.
  • Loading branch information
Simon Emms committed Jan 17, 2022
1 parent 9cbfc06 commit 9a2d528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installer/pkg/components/migrations/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func job(ctx *common.RenderContext) ([]runtime.Object, error) {
Command: []string{
"sh",
"-c",
"cd /app/node_modules/@gitpod/gitpod-db && yarn run wait-for-db && yarn run typeorm migrations:run",
"cd /app/node_modules/@gitpod/gitpod-db && yarn run wait-for-db && yarn run typeorm migration:show || true && yarn run typeorm migration:run",
},
}},
},
Expand Down

0 comments on commit 9a2d528

Please sign in to comment.