From c8c9617ad6fae8b6c907cb4d2aa4aff330864103 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 49231c21f..52bb9291e 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"` Platform string `json:"platform"` StartTime *time.Time `json:"startTime"`