Skip to content
代码片段 群组 项目
未验证 提交 b1f32804 编辑于 作者: Jon Glassman's avatar Jon Glassman 提交者: GitLab
浏览文件

Merge branch 'dnldnz-finalize-migrations-command-commas' into 'master'

Finalize background migrations: escape EVERY comma

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/169924



Merged-by: default avatarJon Glassman <jglassman@gitlab.com>
Approved-by: default avatarJon Glassman <jglassman@gitlab.com>
Co-authored-by: default avatarDaniel Diniz <8012210-dnldnz@users.noreply.gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -315,10 +315,12 @@ use the information in the failure error logs or the database: ...@@ -315,10 +315,12 @@ use the information in the failure error logs or the database:
When dealing with multiple arguments, such as `[["id"],["id_convert_to_bigint"]]`, escape the When dealing with multiple arguments, such as `[["id"],["id_convert_to_bigint"]]`, escape the
comma between each argument with a backslash <code>&#92;</code> to prevent an invalid character error. comma between each argument with a backslash <code>&#92;</code> to prevent an invalid character error.
The command should be: Every comma in the `job_arguments` parameter value must be escaped with a backslash.
For example:
```shell ```shell
sudo gitlab-rake gitlab:background_migrations:finalize[CopyColumnUsingBackgroundMigrationJob,events,id,'[["id"]\, ["id_convert_to_bigint"]]'] sudo gitlab-rake gitlab:background_migrations:finalize[CopyColumnUsingBackgroundMigrationJob,ci_builds,id,'[["id"\, "stage_id"]\,["id_convert_to_bigint"\,"stage_id_convert_to_bigint"]]']
``` ```
::EndTabs ::EndTabs
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册