1// Copyright 2020 The Gitea Authors. All rights reserved.
2// Use of this source code is governed by a MIT-style
3// license that can be found in the LICENSE file.
4
5package migrations
6
7import (
8	"fmt"
9
10	"xorm.io/xorm"
11)
12
13func addResolveDoerIDCommentColumn(x *xorm.Engine) error {
14	type Comment struct {
15		ResolveDoerID int64
16	}
17
18	if err := x.Sync2(new(Comment)); err != nil {
19		return fmt.Errorf("Sync2: %v", err)
20	}
21	return nil
22}
23