fix(azuredevops): add missing migrations for Job model fields from #8671#8932
Closed
magiskboy wants to merge 1 commit into
Closed
fix(azuredevops): add missing migrations for Job model fields from #8671#8932magiskboy wants to merge 1 commit into
magiskboy wants to merge 1 commit into
Conversation
…ache#8671 PR apache#8671 added identifier, type, and parent_id to the Job model and environment_pattern to scope config without database migrations, causing Convert Jobs to fail with "Unknown column identifier" on existing deployments. Co-authored-by: Cursor <cursoragent@cursor.com>
Author
|
Closing — developing this fix independently on magiskboy/devlake fork. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes a schema mismatch introduced by #8671 where the Azure DevOps Python plugin's
Jobmodel gainedidentifier,type, andparent_idfields, andGitRepositoryConfiggainedenvironment_pattern, but no database migrations were added.This caused the Convert Jobs subtask to fail on MySQL with:
Affected releases:
v1.0.3-beta9throughv1.0.3-beta12.Changes
20251231120000to addidentifier,type, andparent_idcolumns to_tool_azuredevops_jobs20251231120001to addenvironment_patterncolumn to_tool_azuredevops_gitrepositoryconfigsUses
add_columnoperations which skip columns that already exist (safe for users who applied manual SQL workarounds).Test plan
environment_patterncan be saved after migrationMade with Cursor