code.gitea.io/gitea@v1.21.7/models/migrations/v1_8/v80.go (about)

     1  // Copyright 2019 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package v1_8 //nolint
     5  
     6  import "xorm.io/xorm"
     7  
     8  func AddIsLockedToIssues(x *xorm.Engine) error {
     9  	// Issue see models/issue.go
    10  	type Issue struct {
    11  		ID       int64 `xorm:"pk autoincr"`
    12  		IsLocked bool  `xorm:"NOT NULL DEFAULT false"`
    13  	}
    14  
    15  	return x.Sync(new(Issue))
    16  }