magiskboy opened a new pull request, #8932:
URL: https://github.com/apache/devlake/pull/8932

   ## Summary
   
   Fixes a schema mismatch introduced by #8671 where the Azure DevOps Python 
plugin's `Job` model gained `identifier`, `type`, and `parent_id` fields, and 
`GitRepositoryConfig` gained `environment_pattern`, but no database migrations 
were added.
   
   This caused the **Convert Jobs** subtask to fail on MySQL with:
   
   ```
   Unknown column '_tool_azuredevops_jobs.identifier' in 'field list'
   ```
   
   Affected releases: `v1.0.3-beta9` through `v1.0.3-beta12`.
   
   ## Changes
   
   - Add migration `20251231120000` to add `identifier`, `type`, and 
`parent_id` columns to `_tool_azuredevops_jobs`
   - Add migration `20251231120001` to add `environment_pattern` column to 
`_tool_azuredevops_gitrepositoryconfigs`
   
   Uses `add_column` operations which skip columns that already exist (safe for 
users who applied manual SQL workarounds).
   
   ## Test plan
   
   - [ ] Start DevLake with an existing DB missing these columns and confirm 
migrations run on startup
   - [ ] Run Azure DevOps pipeline collect including **Convert Jobs** — should 
complete without SQL errors
   - [ ] Verify fresh install also gets columns via migrations (init schema + 
new migrations)
   - [ ] Confirm scope config with `environment_pattern` can be saved after 
migration
   
   
   Made with [Cursor](https://cursor.com)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to