diff options
Diffstat (limited to 'cmd/gotosocial/action/migration/run.go')
| -rw-r--r-- | cmd/gotosocial/action/migration/run.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/gotosocial/action/migration/run.go b/cmd/gotosocial/action/migration/run.go index 61cec035b..d63160073 100644 --- a/cmd/gotosocial/action/migration/run.go +++ b/cmd/gotosocial/action/migration/run.go @@ -27,8 +27,11 @@ import ( "code.superseriousbusiness.org/gotosocial/internal/state" ) +// check function conformance. +var _ action.GTSAction = Run + // Run will initialize the database, running any available migrations. -var Run action.GTSAction = func(ctx context.Context) error { +func Run(ctx context.Context) error { var state state.State defer func() { |
