Add arguments column on task table.

This commit is contained in:
dahyung-kwon 2018-09-11 20:29:05 +09:00
parent c5f402bfa3
commit 4814b7ee40
2 changed files with 3 additions and 1 deletions

View File

@ -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
View File

@ -0,0 +1 @@
alter table task add `arguments` text null;