aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_10/v101.go
blob: 79b419e9d97cc49dce6b6145cb6886c61d20fa36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package v1_10 //nolint

import (
	"xorm.io/xorm"
)

func ChangeSomeColumnsLengthOfExternalLoginUser(x *xorm.Engine) error {
	type ExternalLoginUser struct {
		AccessToken       string `xorm:"TEXT"`
		AccessTokenSecret string `xorm:"TEXT"`
		RefreshToken      string `xorm:"TEXT"`
	}

	return x.Sync2(new(ExternalLoginUser))
}