mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-21 00:47:28 -06:00
lots of restructuring
This commit is contained in:
parent
8ce32272a2
commit
6d81df50ce
21 changed files with 674 additions and 464 deletions
|
|
@ -28,9 +28,10 @@ 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 {
|
||||
db, err := New(ctx, c, log)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return db.CreateSchema(ctx)
|
||||
// db, err := New(ctx, c, log)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
return nil
|
||||
// return db.CreateSchema(ctx)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue