|
|
@@ -179,8 +179,6 @@ type Repository struct {
|
|
|
Name string `xorm:"INDEX NOT NULL"`
|
|
|
Description string `xorm:"VARCHAR(512)"`
|
|
|
Website string
|
|
|
- DonateURL string
|
|
|
- DonateBadge string
|
|
|
DefaultBranch string
|
|
|
Size int64 `xorm:"NOT NULL DEFAULT 0"`
|
|
|
UseCustomAvatar bool
|
|
|
@@ -1461,12 +1459,6 @@ func updateRepository(e Engine, repo *Repository, visibilityChanged bool) (err e
|
|
|
if len(repo.Website) > 255 {
|
|
|
repo.Website = repo.Website[:255]
|
|
|
}
|
|
|
- if len(repo.DonateURL) > 255 {
|
|
|
- repo.DonateURL = repo.DonateURL[:255]
|
|
|
- }
|
|
|
- if len(repo.DonateBadge) > 255 {
|
|
|
- repo.DonateBadge = repo.DonateBadge[:255]
|
|
|
- }
|
|
|
if _, err = e.ID(repo.ID).AllCols().Update(repo); err != nil {
|
|
|
return fmt.Errorf("update: %v", err)
|
|
|
}
|