Skip to content

Commit 3b4e7ec

Browse files
Simon Emmsroboquat
Simon Emms
authored andcommitted
[installer]: change db-migration command
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.
1 parent 9cbfc06 commit 3b4e7ec

File tree

1 file changed

+1
-1
lines changed
  • installer/pkg/components/migrations

1 file changed

+1
-1
lines changed

installer/pkg/components/migrations/job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func job(ctx *common.RenderContext) ([]runtime.Object, error) {
4545
Command: []string{
4646
"sh",
4747
"-c",
48-
"cd /app/node_modules/@gitpod/gitpod-db && yarn run wait-for-db && yarn run typeorm migrations:run",
48+
"cd /app/node_modules/@gitpod/gitpod-db && yarn run wait-for-db && yarn run typeorm migration:show || true && yarn run typeorm migration:run",
4949
},
5050
}},
5151
},

0 commit comments

Comments
 (0)