feat(be): add migration for new limit option

This commit is contained in:
Denis Gukov 2022-06-23 20:37:00 +05:00
parent d416c82ad4
commit 23c3947e18
3 changed files with 3 additions and 1 deletions

View File

@ -57,6 +57,7 @@ func GetMigrations() []Migration {
{Version: "2.8.40"},
{Version: "2.8.42"},
{Version: "2.8.51"},
{Version: "2.8.57"},
}
}

View File

@ -29,7 +29,7 @@ type Task struct {
// override variables
Playbook string `db:"playbook" json:"playbook"`
Environment string `db:"environment" json:"environment"`
Limit string `db:"limit" json:"limit"`
Limit string `db:"hosts_limit" json:"limit"`
UserID *int `db:"user_id" json:"user_id"`

View File

@ -0,0 +1 @@
alter table `task` add column `hosts_limit` varchar(255) not null default '';