1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-07-12 22:21:40 +02:00

Task dependencies to survive restarts

This commit is contained in:
Laszlo Fogas
2019-06-25 12:07:36 +02:00
parent 84564f9ae5
commit be0d1d73fb
13 changed files with 114 additions and 13 deletions

View File

@ -172,6 +172,14 @@ var migrations = []struct {
name: "populate-build-config",
stmt: populateBuildConfig,
},
{
name: "alter-table-add-task-dependencies",
stmt: alterTableAddTaskDependencies,
},
{
name: "alter-table-add-task-run-on",
stmt: alterTableAddTaskRunOn,
},
}
// Migrate performs the database migration. If the migration fails
@ -675,3 +683,15 @@ var populateBuildConfig = `
INSERT INTO build_config (config_id, build_id)
SELECT build_config_id, build_id FROM builds
`
//
// 022_add_task_columns.sql
//
var alterTableAddTaskDependencies = `
ALTER TABLE tasks ADD COLUMN task_dependencies BYTEA
`
var alterTableAddTaskRunOn = `
ALTER TABLE tasks ADD COLUMN task_run_on BYTEA
`