Fix foreign key on build template with postgresql

This commit is contained in:
Brian Zoetewey 2024-11-21 15:13:41 -05:00
parent c4548b017a
commit d601dba331
2 changed files with 2 additions and 4 deletions

View File

@ -234,6 +234,7 @@ func alterRequestBody(t *trans.Transaction) {
bodyFieldProcessor("inventory_id", inventoryID, &request)
bodyFieldProcessor("repository_id", repoID, &request)
bodyFieldProcessor("template_id", templateID, &request)
bodyFieldProcessor("build_template_id", nil, &request)
if task != nil {
bodyFieldProcessor("task_id", task.ID, &request)
}

View File

@ -890,10 +890,6 @@ definitions:
properties:
id:
type: integer
template_id:
type: integer
project_id:
type: integer
name:
type: string
example: default
@ -909,6 +905,7 @@ definitions:
type:
- string
- 'null'
example: path/to/script-client.py
ScheduleRequest:
type: object