diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-04-14 18:43:56 +0200 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-04-14 12:43:56 -0400 |
commit | d699de32f2f6fd2216c8d620c8f53011e511b56b (patch) | |
tree | 1588178184132c2ac6f84af763ba003c469dba4c /models/migrations/v84.go | |
parent | 38889f09cbe039217f159838961b631f8f8d3b46 (diff) | |
download | gitea-d699de32f2f6fd2216c8d620c8f53011e511b56b.tar.gz gitea-d699de32f2f6fd2216c8d620c8f53011e511b56b.zip |
add .gpg url (match github behaviour) (#6610)
* add .gpg url (match github behaviour)
* wildcard
* test to export maximum data
* working POC
* add comment for old imported keys
* cleaning
* Update routers/user/profile.go
Co-Authored-By: sapk <sapk@users.noreply.github.com>
* add migration script
* add integration tests
Diffstat (limited to 'models/migrations/v84.go')
-rw-r--r-- | models/migrations/v84.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/models/migrations/v84.go b/models/migrations/v84.go new file mode 100644 index 0000000000..4acb94b9ce --- /dev/null +++ b/models/migrations/v84.go @@ -0,0 +1,18 @@ +// Copyright 2019 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package migrations + +import ( + "github.com/go-xorm/xorm" +) + +func addGPGKeyImport(x *xorm.Engine) error { + type GPGKeyImport struct { + KeyID string `xorm:"pk CHAR(16) NOT NULL"` + Content string `xorm:"TEXT NOT NULL"` + } + + return x.Sync2(new(GPGKeyImport)) +} |