aboutsummaryrefslogtreecommitdiff
path: root/userapi/storage/postgres/storage.go
diff options
context:
space:
mode:
Diffstat (limited to 'userapi/storage/postgres/storage.go')
-rw-r--r--userapi/storage/postgres/storage.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/userapi/storage/postgres/storage.go b/userapi/storage/postgres/storage.go
index 72e7c9cd..d01ccc77 100644
--- a/userapi/storage/postgres/storage.go
+++ b/userapi/storage/postgres/storage.go
@@ -53,6 +53,10 @@ func NewDatabase(ctx context.Context, conMan sqlutil.Connections, dbProperties *
return nil, err
}
+ registationTokensTable, err := NewPostgresRegistrationTokensTable(db)
+ if err != nil {
+ return nil, fmt.Errorf("NewPostgresRegistrationsTokenTable: %w", err)
+ }
accountsTable, err := NewPostgresAccountsTable(db, serverName)
if err != nil {
return nil, fmt.Errorf("NewPostgresAccountsTable: %w", err)
@@ -125,6 +129,7 @@ func NewDatabase(ctx context.Context, conMan sqlutil.Connections, dbProperties *
ThreePIDs: threePIDTable,
Pushers: pusherTable,
Notifications: notificationsTable,
+ RegistrationTokens: registationTokensTable,
Stats: statsTable,
ServerName: serverName,
DB: db,