From c935cd2775d59456a3aac576688f250ae61db3f9 Mon Sep 17 00:00:00 2001 From: ambition <39669748+Ambition9186@users.noreply.github.com> Date: Sun, 29 Sep 2024 10:06:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20last=20consumed=20time=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=BA=E7=A9=BA=20(#3542)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db-migration/migrations/20240909174526_modify_app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bcs-services/bcs-bscp/cmd/data-service/db-migration/migrations/20240909174526_modify_app.go b/bcs-services/bcs-bscp/cmd/data-service/db-migration/migrations/20240909174526_modify_app.go index 0340b3130d..26f56c7d69 100644 --- a/bcs-services/bcs-bscp/cmd/data-service/db-migration/migrations/20240909174526_modify_app.go +++ b/bcs-services/bcs-bscp/cmd/data-service/db-migration/migrations/20240909174526_modify_app.go @@ -35,7 +35,7 @@ func init() { func mig20240909174526Up(tx *gorm.DB) error { // Applications : applications type Applications struct { - LastConsumedTime time.Time `gorm:"column:last_consumed_time;type:datetime(6)"` + LastConsumedTime time.Time `gorm:"column:last_consumed_time;type:datetime(6);default:NULL"` } // Applications add new column @@ -53,7 +53,7 @@ func mig20240909174526Down(tx *gorm.DB) error { // Applications : applications type Applications struct { - LastConsumedTime time.Time `gorm:"column:last_consumed_time;type:datetime(6)"` + LastConsumedTime time.Time `gorm:"column:last_consumed_time;type:datetime(6);default:NULL"` } // Applications drop column