Skip to content

Commit 47b1f3e

Browse files
JAORMXclaude
andcommitted
fix(asana): remove MySQL-specific gorm type tags for PostgreSQL compatibility
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 #8779 which fixed equivalent issues in the copilot plugin. closes #8835 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent adaa008 commit 47b1f3e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/plugins/asana/models/migrationscripts/20250212_add_task_transformation_fields.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ type asanaTask20250212 struct {
3232
StdType string `gorm:"type:varchar(255)"`
3333
StdStatus string `gorm:"type:varchar(255)"`
3434
Priority string `gorm:"type:varchar(255)"`
35-
StoryPoint *float64 `gorm:"type:double"`
35+
StoryPoint *float64
3636
Severity string `gorm:"type:varchar(255)"`
37-
LeadTimeMinutes *uint `gorm:"type:int unsigned"`
37+
LeadTimeMinutes *uint
3838
}
3939

4040
func (asanaTask20250212) TableName() string {

0 commit comments

Comments
 (0)