code.gitea.io/gitea@v1.22.3/models/migrations/v1_22/v291.go (about)

     1  // Copyright 2024 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package v1_22 //nolint
     5  
     6  import "xorm.io/xorm"
     7  
     8  func AddCommentIDIndexofAttachment(x *xorm.Engine) error {
     9  	type Attachment struct {
    10  		CommentID int64 `xorm:"INDEX"`
    11  	}
    12  
    13  	return x.Sync(&Attachment{})
    14  }