diff options
author | Joe Chen <jc@unknwon.io> | 2022-10-23 16:17:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-23 16:17:53 +0800 |
commit | b1fefcbe5011a4a792808faaf26fae6881ecc1b0 (patch) | |
tree | 42c3d2922ea8460f6f5bf1ebb314039275c25ec2 /internal/db/db.go | |
parent | 8077360cf6370c9ddb026f2432ceb4f4f4ac31c4 (diff) |
refactor(db): migrate `Follow` off `user.go` (#7203)
Diffstat (limited to 'internal/db/db.go')
-rw-r--r-- | internal/db/db.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/db/db.go b/internal/db/db.go index f287ab15..b765dfd8 100644 --- a/internal/db/db.go +++ b/internal/db/db.go @@ -42,6 +42,7 @@ func newLogWriter() (logger.Writer, error) { // NOTE: Lines are sorted in alphabetical order, each letter in its own line. var Tables = []interface{}{ new(Access), new(AccessToken), new(Action), + new(Follow), new(LFSObject), new(LoginSource), } @@ -120,6 +121,7 @@ func Init(w logger.Writer) (*gorm.DB, error) { // Initialize stores, sorted in alphabetical order. AccessTokens = &accessTokens{DB: db} Actions = NewActionsStore(db) + Follows = NewFollowsStore(db) LoginSources = &loginSources{DB: db, files: sourceFiles} LFS = &lfs{DB: db} Perms = &perms{DB: db} |