Files
Atay-Makhzan/models/migrations/v87.go
T

19 lines
419 B
Go
Raw Normal View History

// Copyright 2019 The Gitea Authors. All rights reserved.
2019-05-30 05:22:26 +03:00
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package migrations
import (
2019-10-17 17:26:49 +08:00
"xorm.io/xorm"
2019-05-30 05:22:26 +03:00
)
func addAvatarFieldToRepository(x *xorm.Engine) error {
type Repository struct {
// ID(10-20)-md5(32) - must fit into 64 symbols
Avatar string `xorm:"VARCHAR(64)"`
}
return x.Sync2(new(Repository))
}