Skip to content

Commit ebaf080

Browse files
author
tengtian
committed
fix(asana): use float8 instead of double for PostgreSQL compatibility
The migration used gorm:"type:double" which is MySQL-specific. PostgreSQL does not have a "double" type and fails with: ERROR: type "double" does not exist (SQLSTATE 42704) Changed to float8 which works on both MySQL (alias for double) and PostgreSQL (alias for double precision). Closes #8835
1 parent adaa008 commit ebaf080

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
@@ -32,7 +32,7 @@ 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 `gorm:"type:float8"`
3636
Severity string `gorm:"type:varchar(255)"`
3737
LeadTimeMinutes *uint `gorm:"type:int unsigned"`
3838
}

0 commit comments

Comments
 (0)