fix(asana): remove MySQL-specific gorm type tags for PostgreSQL compatibility#8836
Open
JAORMX wants to merge 1 commit intoapache:mainfrom
Open
fix(asana): remove MySQL-specific gorm type tags for PostgreSQL compatibility#8836JAORMX wants to merge 1 commit intoapache:mainfrom
JAORMX wants to merge 1 commit intoapache:mainfrom
Conversation
…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>
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
gorm:"type:double"andgorm:"type:int unsigned"tags from the Asana task migration struct in20250212_add_task_transformation_fields.godoubletype (usesdouble precision) and does not supportUNSIGNEDinteger qualifiers — both tags cause migration failures on PostgreSQLdouble/double precisionfor*float64,bigint unsigned/bigintfor*uint)Follows the same pattern as #8779 which fixed the equivalent
datetimeissue in the copilot plugin.closes #8835
Test plan
go build ./plugins/asana/...passes (confirmed locally)double/bigint unsignedfor MySQL — matching existing column types)🤖 Generated with Claude Code