From 23496b5f69197642bd71e2e44305d36392bd0f1f Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Fri, 13 Aug 2021 09:19:35 +0200 Subject: [PATCH] fix(server): `env` too long (closes #558) --- server/core/env.go | 2 +- server/core/job.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/core/env.go b/server/core/env.go index 05d38aae3..3805c352f 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 2ae7bb239..f95c1244b 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"`