This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new a6335ae10 fix(asana): remove MySQL-specific gorm type tags for 
PostgreSQL compatibility (#8836)
a6335ae10 is described below

commit a6335ae10e1912cf0fbeed9aee8c4c69e52b0143
Author: Juan Antonio Osorio <[email protected]>
AuthorDate: Sat Apr 18 06:00:04 2026 +0300

    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) <[email protected]>
    Co-authored-by: Klesh Wong <[email protected]>
---
 .../models/migrationscripts/20250212_add_task_transformation_fields.go  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/backend/plugins/asana/models/migrationscripts/20250212_add_task_transformation_fields.go
 
b/backend/plugins/asana/models/migrationscripts/20250212_add_task_transformation_fields.go
index 690a04923..c8706d32c 100644
--- 
a/backend/plugins/asana/models/migrationscripts/20250212_add_task_transformation_fields.go
+++ 
b/backend/plugins/asana/models/migrationscripts/20250212_add_task_transformation_fields.go
@@ -34,7 +34,7 @@ type asanaTask20250212 struct {
        Priority        string   `gorm:"type:varchar(255)"`
        StoryPoint      *float64 `gorm:"type:float8"`
        Severity        string   `gorm:"type:varchar(255)"`
-       LeadTimeMinutes *uint    `gorm:"type:int unsigned"`
+       LeadTimeMinutes *uint
 }
 
 func (asanaTask20250212) TableName() string {

Reply via email to