code.gitea.io/gitea@v1.21.7/models/migrations/v1_10/v90.go (about)

     1  // Copyright 2019 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package v1_10 //nolint
     5  
     6  import "xorm.io/xorm"
     7  
     8  func ChangeSomeColumnsLengthOfRepo(x *xorm.Engine) error {
     9  	type Repository struct {
    10  		ID          int64  `xorm:"pk autoincr"`
    11  		Description string `xorm:"TEXT"`
    12  		Website     string `xorm:"VARCHAR(2048)"`
    13  		OriginalURL string `xorm:"VARCHAR(2048)"`
    14  	}
    15  
    16  	return x.Sync(new(Repository))
    17  }