summaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_10/v101.go
blob: f023a2a0e779e8540faa82194f6368fb04792859 (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.Sync(new(ExternalLoginUser))
}