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 f318fd90d fix: Make gh-copilot plugin database agnostic (#8779)
f318fd90d is described below

commit f318fd90dda61268b0e7bc54040e70a7b9e532c8
Author: Shayne Clausson <[email protected]>
AuthorDate: Mon Mar 23 15:36:55 2026 +0100

    fix: Make gh-copilot plugin database agnostic (#8779)
    
    Co-authored-by: Eldrick Wega <[email protected]>
---
 .../plugins/gh-copilot/models/migrationscripts/20250100_initialize.go | 4 ++--
 .../models/migrationscripts/20260116_add_name_fields_to_scopes.go     | 4 ++--
 .../gh-copilot/models/migrationscripts/20260121_add_scope_configs.go  | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/backend/plugins/gh-copilot/models/migrationscripts/20250100_initialize.go 
b/backend/plugins/gh-copilot/models/migrationscripts/20250100_initialize.go
index 23b4f67b4..53dee4fbc 100644
--- a/backend/plugins/gh-copilot/models/migrationscripts/20250100_initialize.go
+++ b/backend/plugins/gh-copilot/models/migrationscripts/20250100_initialize.go
@@ -65,9 +65,9 @@ type ghCopilotScope20250100 struct {
        ScopeConfigId      uint64     `json:"scopeConfigId,omitempty"`
        Id                 string     `json:"id" 
gorm:"primaryKey;type:varchar(255)"`
        Organization       string     `json:"organization" 
gorm:"type:varchar(255)"`
-       ImplementationDate *time.Time `json:"implementationDate" 
gorm:"type:datetime"`
+       ImplementationDate *time.Time `json:"implementationDate"`
        BaselinePeriodDays int        `json:"baselinePeriodDays" 
gorm:"default:90"`
-       SeatsLastSyncedAt  *time.Time `json:"seatsLastSyncedAt" 
gorm:"type:datetime"`
+       SeatsLastSyncedAt  *time.Time `json:"seatsLastSyncedAt"`
 }
 
 func (ghCopilotScope20250100) TableName() string {
diff --git 
a/backend/plugins/gh-copilot/models/migrationscripts/20260116_add_name_fields_to_scopes.go
 
b/backend/plugins/gh-copilot/models/migrationscripts/20260116_add_name_fields_to_scopes.go
index a1e7c8c99..69df2c0b6 100644
--- 
a/backend/plugins/gh-copilot/models/migrationscripts/20260116_add_name_fields_to_scopes.go
+++ 
b/backend/plugins/gh-copilot/models/migrationscripts/20260116_add_name_fields_to_scopes.go
@@ -38,9 +38,9 @@ type ghCopilotScope20260116 struct {
        Organization       string     `json:"organization" 
gorm:"type:varchar(255)"`
        Name               string     `json:"name" gorm:"type:varchar(255)"`
        FullName           string     `json:"fullName" gorm:"type:varchar(255)"`
-       ImplementationDate *time.Time `json:"implementationDate" 
gorm:"type:datetime"`
+       ImplementationDate *time.Time `json:"implementationDate"`
        BaselinePeriodDays int        `json:"baselinePeriodDays" 
gorm:"default:90"`
-       SeatsLastSyncedAt  *time.Time `json:"seatsLastSyncedAt" 
gorm:"type:datetime"`
+       SeatsLastSyncedAt  *time.Time `json:"seatsLastSyncedAt"`
 }
 
 func (ghCopilotScope20260116) TableName() string {
diff --git 
a/backend/plugins/gh-copilot/models/migrationscripts/20260121_add_scope_configs.go
 
b/backend/plugins/gh-copilot/models/migrationscripts/20260121_add_scope_configs.go
index eb53b0a06..4bd77391f 100644
--- 
a/backend/plugins/gh-copilot/models/migrationscripts/20260121_add_scope_configs.go
+++ 
b/backend/plugins/gh-copilot/models/migrationscripts/20260121_add_scope_configs.go
@@ -33,7 +33,7 @@ type scopeConfig20260121 struct {
        Entities           []string   `gorm:"type:json;serializer:json" 
json:"entities" mapstructure:"entities"`
        ConnectionId       uint64     `json:"connectionId" gorm:"index" 
validate:"required" mapstructure:"connectionId,omitempty"`
        Name               string     `mapstructure:"name" json:"name" 
gorm:"type:varchar(255);uniqueIndex" validate:"required"`
-       ImplementationDate *time.Time `json:"implementationDate" 
mapstructure:"implementationDate" gorm:"type:datetime"`
+       ImplementationDate *time.Time `json:"implementationDate" 
mapstructure:"implementationDate"`
        BaselinePeriodDays int        `json:"baselinePeriodDays" 
mapstructure:"baselinePeriodDays" gorm:"default:90"`
 }
 

Reply via email to