Skip to content

Commit

Permalink
fix(server): env too long (closes bleenco#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Sep 12, 2021
1 parent f6b74cd commit 0e22365
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/core/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion server/core/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Platform string `json:"platform"`
StartTime *time.Time `json:"startTime"`
Expand Down

0 comments on commit 0e22365

Please sign in to comment.