NOTE: This applies when upgrading to the latest
v0.24.x
release.
When migrating from Vela version v0.23 to v0.24 the Vela administrator will want to ensure the following actions are being performed. All queries are available in the SQL migration scripts.
v0.24.x
introduces a newdashboards
table that will be created automatically by default. However, if you are running theserver
component with theVELA_DATABASE_SKIP_CREATION
set totrue
, you will need to manually create this table.
-
This
dashboards
table also impacts theusers
table, adding the columndashboards
to attach dashboards to users. -
v0.24.x
introduces a newsettings
table that will be created automatically by default. However, if you are running theserver
component with theVELA_DATABASE_SKIP_CREATION
set totrue
, you will need to manually create this table.
v0.24.x
introduces a newreport_as
column to the steps table for SCM status reporting for specific steps.
v0.24.x
introduces a newerror
column to the schedules table for compile-time error reporting for scheduled builds.
-
v0.24.x
removes legacy columns from the database that referenced the oldallow_event
system. These columns should be removed from the database. -
v0.24.x
introduces a newsender_scm_id
field to thebuilds
table that will be set to the string identifier that maps to thesender
within the SCM.
For pre-existing builds, the sender_scm_id
column should be prepopulated to 0
using the SQL query in the migration script.
There have been several server refactors included in v0.24.x
. These refactors have changed the structure of API responses for the following resources:
- Worker
- Repository
- Build
- Schedule
These resources will now include any referenced resources in a nested response. For example, Repository
will now include the Owner
as a standard User
resource instead of user_id
:
{
"id": 1,
- "user_id": 1
+ "owner": {
+ "id": 1,
+ "name": "octocat",
+ "favorites": [],
+ "active": true,
+ "admin": false
+ },
"org": "github",
"counter": 10,
"name": "octocat",
"full_name": "github/octocat",
"link": "https://github.com/github/octocat",
"clone": "https://github.com/github/octocat",
"branch": "main"
...
}