You've already forked woodpecker
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:
@ -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
|
||||
`
|
||||
|
Reference in New Issue
Block a user