mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-12-04 15:21:05 +01:00
Fix foreign key on build template with postgresql
This commit is contained in:
parent
c4548b017a
commit
d601dba331
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user