diff options
| author | 2021-09-01 18:29:25 +0200 | |
|---|---|---|
| committer | 2021-09-01 18:29:25 +0200 | |
| commit | 4696e1a7b389599fa981f334b343daa911b11f5d (patch) | |
| tree | d1ca0c896cdacb82ad7c64ee150aa32b37d4c053 /internal/db/bundb/bundb.go | |
| parent | move oauth models into gtsmodel (diff) | |
| download | gotosocial-4696e1a7b389599fa981f334b343daa911b11f5d.tar.xz | |
moving stuff around
Diffstat (limited to 'internal/db/bundb/bundb.go')
| -rw-r--r-- | internal/db/bundb/bundb.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/db/bundb/bundb.go b/internal/db/bundb/bundb.go index f2e83887d..7ddcab5c7 100644 --- a/internal/db/bundb/bundb.go +++ b/internal/db/bundb/bundb.go @@ -86,6 +86,9 @@ func doMigration(ctx context.Context, db *bun.DB, log *logrus.Logger) error { group, err := migrator.Migrate(ctx) if err != nil { + if err.Error() == "migrate: there are no any migrations" { + return nil + } return err } |
