summaryrefslogtreecommitdiff
path: root/internal/db
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db')
-rw-r--r--internal/db/db.go6
-rw-r--r--internal/db/postgres.go5
2 files changed, 3 insertions, 8 deletions
diff --git a/internal/db/db.go b/internal/db/db.go
index 03e30b41b..4ea4e1af6 100644
--- a/internal/db/db.go
+++ b/internal/db/db.go
@@ -25,7 +25,6 @@ import (
"github.com/go-fed/activity/pub"
"github.com/gotosocial/gotosocial/internal/config"
- "github.com/gotosocial/oauth2/v4"
"github.com/sirupsen/logrus"
)
@@ -41,11 +40,6 @@ type DB interface {
pub.Database
/*
- OAUTH2 DATABASE FUNCTIONS
- */
- TokenStore() oauth2.TokenStore
-
- /*
ANY ADDITIONAL DESIRED FUNCTIONS
*/
diff --git a/internal/db/postgres.go b/internal/db/postgres.go
index 96452d5ae..dae6b11e2 100644
--- a/internal/db/postgres.go
+++ b/internal/db/postgres.go
@@ -315,8 +315,9 @@ func (ps *postgresService) Stop(ctx context.Context) error {
func (ps *postgresService) CreateSchema(ctx context.Context) error {
models := []interface{}{
- (*gtsmodel.GTSAccount)(nil),
- (*gtsmodel.GTSStatus)(nil),
+ (*gtsmodel.Account)(nil),
+ (*gtsmodel.Status)(nil),
+ (*gtsmodel.User)(nil),
}
ps.log.Info("creating db schema")