create db schemas for accounts
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user