gitea/models/migrations
sillyguodong 8228751c55
Support changing labels of Actions runner without re-registration (#24806)
close #24540

related:
- Protocol: https://gitea.com/gitea/actions-proto-def/pulls/9
- Runner side: https://gitea.com/gitea/act_runner/pulls/201

changes:
- Add column of `labels` to table `action_runner`, and combine the value
of `agent_labels` and `custom_labels` column to `labels` column.
- Store `labels` when registering `act_runner`.
- Update `labels` when `act_runner` starting and calling `Declare`.
- Users cannot modify the `custom labels` in edit page any more.

other changes:
- Store `version` when registering `act_runner`.
- If runner is latest version, parse version from `Declare`. But older
version runner still parse version from request header.
2023-06-13 22:28:31 +08:00
..
base Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
fixtures Remove wrongly added column on migration test fixtures (#23456) 2023-03-14 19:49:59 +08:00
v1_6 Update go dev dependencies (#22064) 2022-12-08 16:21:37 +08:00
v1_7 Update go dev dependencies (#22064) 2022-12-08 16:21:37 +08:00
v1_8 Update go dev dependencies (#22064) 2022-12-08 16:21:37 +08:00
v1_9 Update go dev dependencies (#22064) 2022-12-08 16:21:37 +08:00
v1_10 Add API management for issue/pull and comment attachments (#21783) 2022-12-09 14:35:56 +08:00
v1_11 Enable forbidigo linter (#24278) 2023-04-24 05:50:58 -04:00
v1_12 Refactor `setting.Database.UseXXX` to methods (#23354) 2023-03-07 18:51:06 +08:00
v1_13 Remove most path-based golangci exclusions (#24214) 2023-04-19 22:08:01 -04:00
v1_14 Remove most path-based golangci exclusions (#24214) 2023-04-19 22:08:01 -04:00
v1_15 Refactor `setting.Database.UseXXX` to methods (#23354) 2023-03-07 18:51:06 +08:00
v1_16 Refactor `setting.Database.UseXXX` to methods (#23354) 2023-03-07 18:51:06 +08:00
v1_17 Drop migration for ForeignReference (#23605) 2023-03-23 15:01:55 -04:00
v1_18 Refactor `setting.Database.UseXXX` to methods (#23354) 2023-03-07 18:51:06 +08:00
v1_19 Refactor `setting.Database.UseXXX` to methods (#23354) 2023-03-07 18:51:06 +08:00
v1_20 Redesign Scoped Access Tokens (#24767) 2023-06-04 20:57:16 +02:00
v1_21 Support changing labels of Actions runner without re-registration (#24806) 2023-06-13 22:28:31 +08:00
migrations.go Support changing labels of Actions runner without re-registration (#24806) 2023-06-13 22:28:31 +08:00