summaryrefslogtreecommitdiff
path: root/internal/db/actions.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-03-05 18:31:12 +0100
committerLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-03-05 18:31:12 +0100
commit59963090cbcee395463b7767e3807ce7c0aa6f43 (patch)
tree7eade814709bb692e24ee6495b201bc1c4b34d6d /internal/db/actions.go
parenttidying up here and there (diff)
downloadgotosocial-59963090cbcee395463b7767e3807ce7c0aa6f43.tar.xz
create db schemas for accounts
Diffstat (limited to 'internal/db/actions.go')
-rw-r--r--internal/db/actions.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/actions.go b/internal/db/actions.go
index ae3d8cadf..9a3012465 100644
--- a/internal/db/actions.go
+++ b/internal/db/actions.go
@@ -28,9 +28,9 @@ import (
// Initialize will initialize the database given in the config for use with GoToSocial
var Initialize action.GTSAction = func(ctx context.Context, c *config.Config, log *logrus.Logger) error {
- _, err := New(ctx, c, log)
+ db, err := New(ctx, c, log)
if err != nil {
return err
}
- return nil
+ return db.CreateSchema(ctx)
}