-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Drop column NumFollowers and NumFollowing #24676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 19 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
82a7501
remove
yp05327 14ae35f
remove
yp05327 84d290a
remove fixtures
yp05327 5419531
fix
yp05327 42e2020
remove empty line
yp05327 69f116c
fix user_test
yp05327 c7af3f3
only search the first page followers and following
yp05327 8fcb064
fix unit test
yp05327 772638c
pre fix conflict
yp05327 3d53f5c
Merge branch 'main' into remove-numfollowers-numfollowing
yp05327 8aa7b81
fix lint
yp05327 b57c9cb
improve
yp05327 cc750a9
fix comment
yp05327 8645c5c
improve
yp05327 6dee2ac
fix sql
yp05327 5a9b107
fix conflicts
yp05327 b3f7129
Merge branch 'main' into remove-numfollowers-numfollowing
yp05327 af59f2f
fix
yp05327 4e66083
fix sql
yp05327 cdf832d
fix
yp05327 71260f4
Merge branch 'main' into remove-numfollowers-numfollowing
yp05327 094be5d
fix
yp05327 29d81db
Merge branch 'main' into remove-numfollowers-numfollowing
yp05327 f0206ff
fix conflict
yp05327 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,6 @@ | |
avatar: avatar1 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 0 | ||
|
@@ -63,8 +61,6 @@ | |
avatar: avatar2 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 2 | ||
num_following: 1 | ||
num_stars: 2 | ||
num_repos: 13 | ||
num_teams: 0 | ||
|
@@ -100,8 +96,6 @@ | |
avatar: avatar3 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 3 | ||
num_teams: 5 | ||
|
@@ -137,8 +131,6 @@ | |
avatar: avatar4 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 1 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 0 | ||
|
@@ -174,8 +166,6 @@ | |
avatar: avatar5 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 1 | ||
num_teams: 0 | ||
|
@@ -211,8 +201,6 @@ | |
avatar: avatar6 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 2 | ||
|
@@ -248,8 +236,6 @@ | |
avatar: avatar7 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 1 | ||
|
@@ -285,8 +271,6 @@ | |
avatar: avatar8 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 1 | ||
num_following: 1 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 0 | ||
|
@@ -322,8 +306,6 @@ | |
avatar: avatar9 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 0 | ||
|
@@ -359,8 +341,6 @@ | |
avatar: avatar10 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 3 | ||
num_teams: 0 | ||
|
@@ -396,8 +376,6 @@ | |
avatar: avatar11 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 1 | ||
num_teams: 0 | ||
|
@@ -433,8 +411,6 @@ | |
avatar: avatar12 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 1 | ||
num_teams: 0 | ||
|
@@ -470,8 +446,6 @@ | |
avatar: avatar13 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 1 | ||
num_teams: 0 | ||
|
@@ -507,8 +481,6 @@ | |
avatar: avatar14 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 3 | ||
num_teams: 0 | ||
|
@@ -544,8 +516,6 @@ | |
avatar: avatar15 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 4 | ||
num_teams: 0 | ||
|
@@ -581,8 +551,6 @@ | |
avatar: avatar16 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 2 | ||
num_teams: 0 | ||
|
@@ -618,8 +586,6 @@ | |
avatar: avatar17 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 2 | ||
num_teams: 3 | ||
|
@@ -655,8 +621,6 @@ | |
avatar: avatar18 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 0 | ||
|
@@ -692,8 +656,6 @@ | |
avatar: avatar19 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 2 | ||
num_teams: 1 | ||
|
@@ -729,8 +691,6 @@ | |
avatar: avatar20 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 4 | ||
num_teams: 0 | ||
|
@@ -766,8 +726,6 @@ | |
avatar: avatar21 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 2 | ||
num_teams: 0 | ||
|
@@ -803,8 +761,6 @@ | |
avatar: avatar22 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 2 | ||
num_teams: 1 | ||
|
@@ -840,8 +796,6 @@ | |
avatar: avatar23 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 2 | ||
num_teams: 2 | ||
|
@@ -877,8 +831,6 @@ | |
avatar: avatar24 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 0 | ||
|
@@ -914,8 +866,6 @@ | |
avatar: avatar25 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 1 | ||
|
@@ -951,8 +901,6 @@ | |
avatar: avatar26 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 4 | ||
num_teams: 1 | ||
|
@@ -988,8 +936,6 @@ | |
avatar: avatar27 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 3 | ||
num_teams: 0 | ||
|
@@ -1025,8 +971,6 @@ | |
avatar: avatar28 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 0 | ||
|
@@ -1062,8 +1006,6 @@ | |
avatar: avatar29 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 0 | ||
|
@@ -1099,8 +1041,6 @@ | |
avatar: avatar29 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 4 | ||
num_teams: 0 | ||
|
@@ -1136,8 +1076,6 @@ | |
avatar: avatar31 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 1 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 0 | ||
|
@@ -1173,8 +1111,6 @@ | |
avatar: avatar32 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 0 | ||
|
@@ -1210,8 +1146,6 @@ | |
avatar: avatar33 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 1 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 0 | ||
|
@@ -1248,8 +1182,6 @@ | |
avatar: avatar34 | ||
avatar_email: [email protected] | ||
use_custom_avatar: true | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 0 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2023 The Gitea Authors. All rights reserved. | ||
// SPDX-License-Identifier: MIT | ||
|
||
package v1_20 //nolint | ||
|
||
import ( | ||
"code.gitea.io/gitea/models/migrations/base" | ||
|
||
"xorm.io/xorm" | ||
) | ||
|
||
func DropColumnNumFollowersAndNumFollowingOnUser(x *xorm.Engine) error { | ||
sess := x.NewSession() | ||
defer sess.Close() | ||
if err := sess.Begin(); err != nil { | ||
return err | ||
} | ||
if err := base.DropTableColumns(sess, "user", "num_followers", "num_following"); err != nil { | ||
return err | ||
} | ||
return sess.Commit() | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.