summaryrefslogtreecommitdiff
path: root/internal/server/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/server/actions.go
parenttidying up here and there (diff)
downloadgotosocial-59963090cbcee395463b7767e3807ce7c0aa6f43.tar.xz
create db schemas for accounts
Diffstat (limited to 'internal/server/actions.go')
-rw-r--r--internal/server/actions.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/server/actions.go b/internal/server/actions.go
index b3047c334..6ff3045b5 100644
--- a/internal/server/actions.go
+++ b/internal/server/actions.go
@@ -38,6 +38,10 @@ var Run action.GTSAction = func(ctx context.Context, c *config.Config, log *logr
return fmt.Errorf("error creating dbservice: %s", err)
}
+ if err := dbService.CreateSchema(ctx); err != nil {
+ return fmt.Errorf("error creating dbschema: %s", err)
+ }
+
// catch shutdown signals from the operating system
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, os.Interrupt, syscall.SIGTERM)