Skip to content

Commit a6335ae

Browse files
JAORMXclaudeklesh
authored
fix(asana): remove MySQL-specific gorm type tags for PostgreSQL compatibility (#8836)
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> Co-authored-by: Klesh Wong <klesh@qq.com>
1 parent d7d5fa6 commit a6335ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type asanaTask20250212 struct {
3434
Priority string `gorm:"type:varchar(255)"`
3535
StoryPoint *float64 `gorm:"type:float8"`
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)