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("inventory_id", inventoryID, &request)
bodyFieldProcessor("repository_id", repoID, &request) bodyFieldProcessor("repository_id", repoID, &request)
bodyFieldProcessor("template_id", templateID, &request) bodyFieldProcessor("template_id", templateID, &request)
bodyFieldProcessor("build_template_id", nil, &request)
if task != nil { if task != nil {
bodyFieldProcessor("task_id", task.ID, &request) bodyFieldProcessor("task_id", task.ID, &request)
} }

View File

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