From 862dbc035ef4c660a36702aad86de48dfcd9ac3d Mon Sep 17 00:00:00 2001 From: cyan Date: Wed, 16 Jun 2021 19:44:37 +0200 Subject: [PATCH] fix(core): build failed to start When a new build was created, `env` in `jobs` table was `varchar(255)`, which was able to accept only 255 characters. --- server/core/job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/job.go b/server/core/job.go index 47eff565..843d7392 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 `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