code.gitea.io/gitea@v1.21.7/models/migrations/v1_16/v203.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  	"xorm.io/xorm"
     8  )
     9  
    10  func AddProjectIssueSorting(x *xorm.Engine) error {
    11  	// ProjectIssue saves relation from issue to a project
    12  	type ProjectIssue struct {
    13  		Sorting int64 `xorm:"NOT NULL DEFAULT 0"`
    14  	}
    15  
    16  	return x.Sync(new(ProjectIssue))
    17  }