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