repo: set default value for `is_unlisted` column (#6305)

pull/6306/head
ᴜɴᴋɴᴡᴏɴ 2020-09-04 05:56:31 +08:00 committed by GitHub
parent 2665b5968c
commit 2cb83f13fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -173,10 +173,10 @@ type Repository struct {
NumOpenMilestones int `xorm:"-" gorm:"-" json:"-"`
NumTags int `xorm:"-" gorm:"-" json:"-"`
IsPrivate bool
IsPrivate bool
// TODO: When migrate to GORM, make sure to do a loose migration with `HasColumn` and `AddColumn`,
// see docs in https://gorm.io/docs/migration.html.
IsUnlisted bool
IsUnlisted bool `xorm:"NOT NULL DEFAULT false"`
IsBare bool
IsMirror bool