code.gitea.io/gitea@v1.21.7/models/migrations/v1_21/v271.go (about)

     1  // Copyright 2023 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package v1_21 //nolint
     5  import (
     6  	"code.gitea.io/gitea/modules/timeutil"
     7  
     8  	"xorm.io/xorm"
     9  )
    10  
    11  func AddArchivedUnixColumInLabelTable(x *xorm.Engine) error {
    12  	type Label struct {
    13  		ArchivedUnix timeutil.TimeStamp `xorm:"DEFAULT NULL"`
    14  	}
    15  	return x.Sync(new(Label))
    16  }