mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-07 12:02:20 +00:00
ac49dbe1a2
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
20 lines
389 B
Go
20 lines
389 B
Go
// Copyright 2019 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_9
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gitea.dev/modelmigration/base"
|
|
)
|
|
|
|
func AddGPGKeyImport(_ context.Context, x base.EngineMigration) error {
|
|
type GPGKeyImport struct {
|
|
KeyID string `xorm:"pk CHAR(16) NOT NULL"`
|
|
Content string `xorm:"TEXT NOT NULL"`
|
|
}
|
|
|
|
return x.Sync(new(GPGKeyImport))
|
|
}
|