Skip to content

Commit

Permalink
feat(be): add migration for new limit option
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Jun 23, 2022
1 parent d416c82 commit 23c3947
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions db/Migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func GetMigrations() []Migration {
{Version: "2.8.40"},
{Version: "2.8.42"},
{Version: "2.8.51"},
{Version: "2.8.57"},
}
}

Expand Down
2 changes: 1 addition & 1 deletion db/Task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand Down
1 change: 1 addition & 0 deletions db/sql/migrations/v2.8.57.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table `task` add column `hosts_limit` varchar(255) not null default '';

0 comments on commit 23c3947

Please sign in to comment.