code.gitea.io/gitea@v1.21.7/models/migrations/v1_16/v192.go (about)

     1  // Copyright 2021 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package v1_16 //nolint
     5  
     6  import (
     7  	"code.gitea.io/gitea/models/migrations/base"
     8  
     9  	"xorm.io/xorm"
    10  )
    11  
    12  func RecreateIssueResourceIndexTable(x *xorm.Engine) error {
    13  	type IssueIndex struct {
    14  		GroupID  int64 `xorm:"pk"`
    15  		MaxIndex int64 `xorm:"index"`
    16  	}
    17  
    18  	return base.RecreateTables(new(IssueIndex))(x)
    19  }