mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-12-03 14:51:05 +01:00
feat(be): add migration for new limit option
This commit is contained in:
parent
d416c82ad4
commit
23c3947e18
@ -57,6 +57,7 @@ func GetMigrations() []Migration {
|
||||
{Version: "2.8.40"},
|
||||
{Version: "2.8.42"},
|
||||
{Version: "2.8.51"},
|
||||
{Version: "2.8.57"},
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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"`
|
||||
|
||||
|
1
db/sql/migrations/v2.8.57.sql
Normal file
1
db/sql/migrations/v2.8.57.sql
Normal file
@ -0,0 +1 @@
|
||||
alter table `task` add column `hosts_limit` varchar(255) not null default '';
|
Loading…
Reference in New Issue
Block a user