code.gitea.io/gitea@v1.21.7/models/migrations/v1_16/v204.go (about)

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