create db schemas for accounts

This commit is contained in:
tsmethurst
2021-03-05 18:31:12 +01:00
parent 052783db66
commit 59963090cb
10 changed files with 284 additions and 21 deletions

View File

@ -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)
}