Add label descriptions (#3662)
* Add label descriptions * Add default descriptions to label templatetokarchuk/v1.17
parent
ad33730dca
commit
c0d41b1b77
@ -0,0 +1,22 @@ |
||||
// Copyright 2018 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 ( |
||||
"fmt" |
||||
|
||||
"github.com/go-xorm/xorm" |
||||
) |
||||
|
||||
func addLabelsDescriptions(x *xorm.Engine) error { |
||||
type Label struct { |
||||
Description string |
||||
} |
||||
|
||||
if err := x.Sync2(new(Label)); err != nil { |
||||
return fmt.Errorf("Sync2: %v", err) |
||||
} |
||||
return nil |
||||
} |
@ -1,7 +1,7 @@ |
||||
#ee0701 bug |
||||
#cccccc duplicate |
||||
#84b6eb enhancement |
||||
#128a0c help wanted |
||||
#e6e6e6 invalid |
||||
#cc317c question |
||||
#ffffff wontfix |
||||
#ee0701 bug ; Something is not working |
||||
#cccccc duplicate ; This issue or pull request already exists |
||||
#84b6eb enhancement ; New feature |
||||
#128a0c help wanted ; Need some help |
||||
#e6e6e6 invalid ; Something is wrong |
||||
#cc317c question ; More information is needed |
||||
#ffffff wontfix ; This won't be fixed |
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue