Skip to content

fix(asana): remove MySQL-specific gorm type tags for PostgreSQL compatibility#8836

Open
JAORMX wants to merge 1 commit intoapache:mainfrom
JAORMX:fix/asana-postgres-compat-gorm-types
Open

fix(asana): remove MySQL-specific gorm type tags for PostgreSQL compatibility#8836
JAORMX wants to merge 1 commit intoapache:mainfrom
JAORMX:fix/asana-postgres-compat-gorm-types

Conversation

@JAORMX
Copy link
Copy Markdown

@JAORMX JAORMX commented Apr 14, 2026

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

…tibility

Remove explicit `gorm:"type:double"` and `gorm:"type:int unsigned"` tags
from the Asana task migration struct. PostgreSQL does not have a `double`
type (it uses `double precision`) and does not support `UNSIGNED` integer
qualifiers. Without explicit tags, GORM infers the correct column type
per dialect automatically.

Follows the same pattern as apache#8779 which fixed equivalent issues in the
copilot plugin.

closes apache#8835

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. component/plugins This issue or PR relates to plugins pr-type/bug-fix This PR fixes a bug labels Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/plugins This issue or PR relates to plugins pr-type/bug-fix This PR fixes a bug size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Asana plugin migration uses MySQL-specific "double" type, fails on PostgreSQL

1 participant