Skip to content

Commit

Permalink
fix(core): build failed to start
Browse files Browse the repository at this point in the history
When a new build was created, `env` in `jobs` table was `varchar(255)`, which was able to accept only 255 characters.
  • Loading branch information
MrCyjaneK authored and jkuri committed Jun 16, 2021
1 parent e70fc68 commit 862dbc0
Showing 1 changed file with 1 addition and 1 deletion.
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 `sql:"type:text" json:"env"`
StartTime *time.Time `json:"startTime"`
EndTime *time.Time `json:"endTime"`
Status string `gorm:"not null;size:20;default:'queued'" json:"status"` // queued | running | passing | failing
Expand Down

0 comments on commit 862dbc0

Please sign in to comment.