code.gitea.io/gitea@v1.21.7/models/migrations/v1_9/v87.go (about) 1 // Copyright 2019 The Gitea Authors. All rights reserved. 2 // SPDX-License-Identifier: MIT 3 4 package v1_9 //nolint 5 6 import ( 7 "xorm.io/xorm" 8 ) 9 10 func AddAvatarFieldToRepository(x *xorm.Engine) error { 11 type Repository struct { 12 // ID(10-20)-md5(32) - must fit into 64 symbols 13 Avatar string `xorm:"VARCHAR(64)"` 14 } 15 16 return x.Sync(new(Repository)) 17 }