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

implement file endpoints

This commit is contained in:
Brad Rydzewski
2017-07-27 13:06:24 -04:00
parent 825dc630b9
commit bcdd5c9d06
18 changed files with 168 additions and 3 deletions

View File

@ -136,6 +136,10 @@ var migrations = []struct {
name: "create-index-perms-user",
stmt: createIndexPermsUser,
},
{
name: "alter-table-add-file-pid",
stmt: alterTableAddFilePid,
},
}
// Migrate performs the database migration. If the migration fails
@ -575,3 +579,11 @@ CREATE INDEX IF NOT EXISTS ix_perms_repo ON perms (perm_repo_id);
var createIndexPermsUser = `
CREATE INDEX IF NOT EXISTS ix_perms_user ON perms (perm_user_id);
`
//
// 018_add_column_file_pid.sql
//
var alterTableAddFilePid = `
ALTER TABLE files ADD COLUMN file_pid INTEGER
`