Add linter and a little bit more tests
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
This commit is contained in:
@@ -39,7 +39,8 @@ func (cmd *Migrate) Run(ctx context.Context) error {
|
||||
log.Info("Preparing database migrations")
|
||||
m, err := migrate.NewWithDatabaseInstance(
|
||||
cmd.MigrationsPath,
|
||||
"postgres", driver)
|
||||
"postgres", driver,
|
||||
)
|
||||
if err != nil {
|
||||
log.Error(err, "Couldn't perform database migrations")
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user