diff options
| author | 2022-11-28 11:19:39 +0100 | |
|---|---|---|
| committer | 2022-11-28 11:19:39 +0100 | |
| commit | daf44ac2b709922512cfee3cde686b84b4868775 (patch) | |
| tree | 2967df466f8d4515d32c05cf520ba3e7a19d4fae /vendor/github.com/uptrace/bun/migrate/migrator.go | |
| parent | [chore]: Bump codeberg.org/gruf/go-store/v2 from 2.0.9 to 2.0.10 (#1160) (diff) | |
| download | gotosocial-daf44ac2b709922512cfee3cde686b84b4868775.tar.xz | |
[chore] Bump database dependencies (#1164)
github.com/uptrace/bun v1.1.8 -> v1.1.9
github.com/uptrace/bun/pgdialect v1.1.8 -> v1.1.9
github.com/uptrace/bun/sqlitedialect v1.1.8 -> v1.1.9
modernc.org/sqlite v1.18.2 -> v1.19.5
Diffstat (limited to 'vendor/github.com/uptrace/bun/migrate/migrator.go')
| -rw-r--r-- | vendor/github.com/uptrace/bun/migrate/migrator.go | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/vendor/github.com/uptrace/bun/migrate/migrator.go b/vendor/github.com/uptrace/bun/migrate/migrator.go index 98d8f434e..e24dba808 100644 --- a/vendor/github.com/uptrace/bun/migrate/migrator.go +++ b/vendor/github.com/uptrace/bun/migrate/migrator.go @@ -136,11 +136,6 @@ func (m *Migrator) Migrate(ctx context.Context, opts ...MigrationOption) (*Migra return nil, err } - if err := m.Lock(ctx); err != nil { - return nil, err - } - defer m.Unlock(ctx) //nolint:errcheck - migrations, lastGroupID, err := m.migrationsWithStatus(ctx) if err != nil { return nil, err @@ -188,11 +183,6 @@ func (m *Migrator) Rollback(ctx context.Context, opts ...MigrationOption) (*Migr return nil, err } - if err := m.Lock(ctx); err != nil { - return nil, err - } - defer m.Unlock(ctx) //nolint:errcheck - migrations, err := m.MigrationsWithStatus(ctx) if err != nil { return nil, err @@ -380,7 +370,7 @@ func (m *Migrator) formattedTableName(db *bun.DB) string { func (m *Migrator) validate() error { if len(m.ms) == 0 { - return errors.New("migrate: there are no any migrations") + return errors.New("migrate: there are no migrations") } return nil } |
