diff --git a/server/core/env.go b/server/core/env.go index 05d38aae..3805c352 100644 --- a/server/core/env.go +++ b/server/core/env.go @@ -5,7 +5,7 @@ type ( EnvVariable struct { ID uint `gorm:"primary_key;auto_increment;not null" json:"id"` Key string `gorm:"not null" json:"key"` - Value string `gorm:"not null" sql:"type:text" json:"value"` + Value string `gorm:"not null" sql:"type:longtext" json:"value"` Secret bool `gorm:"not null,default:false" json:"secret"` RepositoryID uint `gorm:"not null" json:"repositoryID"` Repository Repository `json:"repository"` diff --git a/server/core/job.go b/server/core/job.go index 2ae7bb23..f95c1244 100644 --- a/server/core/job.go +++ b/server/core/job.go @@ -8,7 +8,7 @@ type ( ID uint `gorm:"primary_key;auto_increment;not null" json:"id"` Commands string `sql:"type:text" json:"commands"` Image string `json:"image"` - Env string `json:"env"` + Env string `json:"env" sql:"type:longtext"` Mount string `json:"mount"` StartTime *time.Time `json:"startTime"` EndTime *time.Time `json:"endTime"`