code.gitea.io/gitea@v1.21.7/models/migrations/v1_10/v101.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 (
     7  	"xorm.io/xorm"
     8  )
     9  
    10  func ChangeSomeColumnsLengthOfExternalLoginUser(x *xorm.Engine) error {
    11  	type ExternalLoginUser struct {
    12  		AccessToken       string `xorm:"TEXT"`
    13  		AccessTokenSecret string `xorm:"TEXT"`
    14  		RefreshToken      string `xorm:"TEXT"`
    15  	}
    16  
    17  	return x.Sync(new(ExternalLoginUser))
    18  }