From 2cb83f13fd86f99a2c7a9d42461b58fb0a47cf44 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Fri, 4 Sep 2020 05:56:31 +0800 Subject: repo: set default value for `is_unlisted` column (#6305) --- internal/db/repo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/db') diff --git a/internal/db/repo.go b/internal/db/repo.go index 6d1cb3d9..2a887c7f 100644 --- a/internal/db/repo.go +++ b/internal/db/repo.go @@ -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 -- cgit v1.2.3