2019-06-30 15:57:59 +08:00
|
|
|
// Copyright 2019 The Gitea Authors. All rights reserved.
|
2022-11-27 13:20:29 -05:00
|
|
|
// SPDX-License-Identifier: MIT
|
2019-05-30 05:22:26 +03:00
|
|
|
|
2025-06-27 07:59:55 +02:00
|
|
|
package v1_9
|
2019-05-30 05:22:26 +03:00
|
|
|
|
|
|
|
|
import (
|
2019-10-17 17:26:49 +08:00
|
|
|
"xorm.io/xorm"
|
2019-05-30 05:22:26 +03:00
|
|
|
)
|
|
|
|
|
|
2022-11-02 16:54:36 +08:00
|
|
|
func AddAvatarFieldToRepository(x *xorm.Engine) error {
|
2019-05-30 05:22:26 +03:00
|
|
|
type Repository struct {
|
|
|
|
|
// ID(10-20)-md5(32) - must fit into 64 symbols
|
|
|
|
|
Avatar string `xorm:"VARCHAR(64)"`
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-13 21:17:21 +02:00
|
|
|
return x.Sync(new(Repository))
|
2019-05-30 05:22:26 +03:00
|
|
|
}
|