code.gitea.io/gitea@v1.21.7/models/migrations/v1_15/v188.go (about)

     1  // Copyright 2021 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package v1_15 //nolint
     5  
     6  import "xorm.io/xorm"
     7  
     8  func AddKeyIsVerified(x *xorm.Engine) error {
     9  	type GPGKey struct {
    10  		Verified bool `xorm:"NOT NULL DEFAULT false"`
    11  	}
    12  
    13  	return x.Sync(new(GPGKey))
    14  }