Skip to content

Commit 5011727

Browse files
sclaussonewega
authored andcommitted
fix: Make gh-copilot plugin database agnostic (#8779)
Co-authored-by: Eldrick Wega <eldrick.wega@outlook.com>
1 parent 70ef083 commit 5011727

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

backend/plugins/gh-copilot/models/migrationscripts/20250100_initialize.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ type ghCopilotScope20250100 struct {
6565
ScopeConfigId uint64 `json:"scopeConfigId,omitempty"`
6666
Id string `json:"id" gorm:"primaryKey;type:varchar(255)"`
6767
Organization string `json:"organization" gorm:"type:varchar(255)"`
68-
ImplementationDate *time.Time `json:"implementationDate" gorm:"type:datetime"`
68+
ImplementationDate *time.Time `json:"implementationDate"`
6969
BaselinePeriodDays int `json:"baselinePeriodDays" gorm:"default:90"`
70-
SeatsLastSyncedAt *time.Time `json:"seatsLastSyncedAt" gorm:"type:datetime"`
70+
SeatsLastSyncedAt *time.Time `json:"seatsLastSyncedAt"`
7171
}
7272

7373
func (ghCopilotScope20250100) TableName() string {

backend/plugins/gh-copilot/models/migrationscripts/20260116_add_name_fields_to_scopes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ type ghCopilotScope20260116 struct {
3838
Organization string `json:"organization" gorm:"type:varchar(255)"`
3939
Name string `json:"name" gorm:"type:varchar(255)"`
4040
FullName string `json:"fullName" gorm:"type:varchar(255)"`
41-
ImplementationDate *time.Time `json:"implementationDate" gorm:"type:datetime"`
41+
ImplementationDate *time.Time `json:"implementationDate"`
4242
BaselinePeriodDays int `json:"baselinePeriodDays" gorm:"default:90"`
43-
SeatsLastSyncedAt *time.Time `json:"seatsLastSyncedAt" gorm:"type:datetime"`
43+
SeatsLastSyncedAt *time.Time `json:"seatsLastSyncedAt"`
4444
}
4545

4646
func (ghCopilotScope20260116) TableName() string {

backend/plugins/gh-copilot/models/migrationscripts/20260121_add_scope_configs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type scopeConfig20260121 struct {
3333
Entities []string `gorm:"type:json;serializer:json" json:"entities" mapstructure:"entities"`
3434
ConnectionId uint64 `json:"connectionId" gorm:"index" validate:"required" mapstructure:"connectionId,omitempty"`
3535
Name string `mapstructure:"name" json:"name" gorm:"type:varchar(255);uniqueIndex" validate:"required"`
36-
ImplementationDate *time.Time `json:"implementationDate" mapstructure:"implementationDate" gorm:"type:datetime"`
36+
ImplementationDate *time.Time `json:"implementationDate" mapstructure:"implementationDate"`
3737
BaselinePeriodDays int `json:"baselinePeriodDays" mapstructure:"baselinePeriodDays" gorm:"default:90"`
3838
}
3939

0 commit comments

Comments
 (0)