gitea源码

123456789101112131415161718
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_9
  4. import (
  5. "xorm.io/xorm"
  6. )
  7. func AddGPGKeyImport(x *xorm.Engine) error {
  8. type GPGKeyImport struct {
  9. KeyID string `xorm:"pk CHAR(16) NOT NULL"`
  10. Content string `xorm:"TEXT NOT NULL"`
  11. }
  12. return x.Sync(new(GPGKeyImport))
  13. }