You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "JAORMX (via GitHub)" <gi...@apache.org> on 2026/04/14 13:00:55 UTC
[PR] fix(asana): remove MySQL-specific gorm type tags for PostgreSQL compatibility [incubator-devlake]
JAORMX opened a new pull request, #8836:
URL: https://github.com/apache/incubator-devlake/pull/8836
## Summary
- Remove explicit `gorm:"type:double"` and `gorm:"type:int unsigned"` tags from the Asana task migration struct in `20250212_add_task_transformation_fields.go`
- PostgreSQL does not have a `double` type (uses `double precision`) and does not support `UNSIGNED` integer qualifiers — both tags cause migration failures on PostgreSQL
- Without explicit tags, GORM infers the correct column type per dialect automatically (`double`/`double precision` for `*float64`, `bigint unsigned`/`bigint` for `*uint`)
Follows the same pattern as #8779 which fixed the equivalent `datetime` issue in the copilot plugin.
closes #8835
## Test plan
- [ ] Verify `go build ./plugins/asana/...` passes (confirmed locally)
- [ ] Verify GORM AutoMigrate succeeds on PostgreSQL without errors
- [ ] Verify existing MySQL installations are unaffected (migration is gated by version number and GORM infers `double` / `bigint unsigned` for MySQL — matching existing column types)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(asana): remove MySQL-specific gorm type tags for PostgreSQL compatibility [incubator-devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on PR #8836:
URL: https://github.com/apache/incubator-devlake/pull/8836#issuecomment-4272375564
@copilot resolve the merge conflicts in this pull request
--
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: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(asana): remove MySQL-specific gorm type tags for PostgreSQL compatibility [incubator-devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh merged PR #8836:
URL: https://github.com/apache/incubator-devlake/pull/8836
--
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: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org