File tree 4 files changed +28
-3
lines changed
docs/content/doc/advanced
4 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ menu:
200
200
201
201
### Cron - Update Migration Poster ID (` cron.update_migration_post_id ` )
202
202
203
- - ` SCHEDULE ` : ** @every 24h** : 每次统计的间隔时间 。此任务总是在启动时自动进行。
203
+ - ` SCHEDULE ` : ** @every 24h** : 每次同步的间隔时间 。此任务总是在启动时自动进行。
204
204
205
205
## Git (` git ` )
206
206
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ import (
14
14
15
15
// ExternalLoginUser makes the connecting between some existing user and additional external login sources
16
16
type ExternalLoginUser struct {
17
- ExternalID string `xorm:"VARCHAR(50) pk NOT NULL"`
17
+ ExternalID string `xorm:"pk NOT NULL"`
18
18
UserID int64 `xorm:"INDEX NOT NULL"`
19
19
LoginSourceID int64 `xorm:"pk NOT NULL"`
20
20
RawData map [string ]interface {} `xorm:"TEXT"`
21
- Provider string `xorm:"index"`
21
+ Provider string `xorm:"index VARCHAR(25) "`
22
22
Email string
23
23
Name string
24
24
FirstName string
Original file line number Diff line number Diff line change @@ -26,8 +26,29 @@ func addTaskTable(x *xorm.Engine) error {
26
26
Created timeutil.TimeStamp `xorm:"created"`
27
27
}
28
28
29
+ << << << < HEAD
29
30
type Repository struct {
30
31
Status int `xorm:"NOT NULL DEFAULT 0"`
32
+ == == == =
33
+ type ExternalLoginUser struct {
34
+ ExternalID string `xorm:"pk NOT NULL"`
35
+ UserID int64 `xorm:"INDEX NOT NULL"`
36
+ LoginSourceID int64 `xorm:"pk NOT NULL"`
37
+ RawData map [string ]interface {} `xorm:"TEXT"`
38
+ Provider string `xorm:"index VARCHAR(25)"`
39
+ Email string
40
+ Name string
41
+ FirstName string
42
+ LastName string
43
+ NickName string
44
+ Description string
45
+ AvatarURL string
46
+ Location string
47
+ AccessToken string
48
+ AccessTokenSecret string
49
+ RefreshToken string
50
+ ExpiresAt time.Time
51
+ >> >> >> > improve code
31
52
}
32
53
33
54
return x.Sync2 (new (Task ), new (Repository ))
Original file line number Diff line number Diff line change
1
+ // Copyright 2019 The Gitea Authors. All rights reserved.
2
+ // Use of this source code is governed by a MIT-style
3
+ // license that can be found in the LICENSE file.
4
+
1
5
package externalaccount
2
6
3
7
import (
You can’t perform that action at this time.
0 commit comments