Skip to content

Commit

Permalink
fix: last consumed time默认设置为空 (#3542)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambition9186 committed Sep 29, 2024
1 parent ca17bab commit c935cd2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c935cd2

Please sign in to comment.