diff --git a/db/Migration.go b/db/Migration.go index 690d0ecf..fa7ee445 100644 --- a/db/Migration.go +++ b/db/Migration.go @@ -57,6 +57,7 @@ func GetMigrations() []Migration { {Version: "2.8.40"}, {Version: "2.8.42"}, {Version: "2.8.51"}, + {Version: "2.8.57"}, } } diff --git a/db/Task.go b/db/Task.go index 09e601c4..ff916595 100644 --- a/db/Task.go +++ b/db/Task.go @@ -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"` diff --git a/db/sql/migrations/v2.8.57.sql b/db/sql/migrations/v2.8.57.sql new file mode 100644 index 00000000..1a23b9b8 --- /dev/null +++ b/db/sql/migrations/v2.8.57.sql @@ -0,0 +1 @@ +alter table `task` add column `hosts_limit` varchar(255) not null default '';