mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 23:39:56 +01:00
Add arguments column on task table.
This commit is contained in:
parent
c5f402bfa3
commit
4814b7ee40
@ -2,7 +2,6 @@ package db
|
||||
|
||||
import "time"
|
||||
|
||||
|
||||
//Task is a model of a task which will be executed by the runner
|
||||
type Task struct {
|
||||
ID int `db:"id" json:"id"`
|
||||
@ -16,6 +15,8 @@ type Task struct {
|
||||
// override variables
|
||||
Playbook string `db:"playbook" json:"playbook"`
|
||||
Environment string `db:"environment" json:"environment"`
|
||||
// to fit into []string
|
||||
Arguments *string `db:"arguments" json:"arguments"`
|
||||
|
||||
UserID *int `db:"user_id" json:"user_id"`
|
||||
|
||||
|
1
db/migrations/v2.5.2.sql
Normal file
1
db/migrations/v2.5.2.sql
Normal file
@ -0,0 +1 @@
|
||||
alter table task add `arguments` text null;
|
Loading…
Reference in New Issue
Block a user