DEVELOPMENT ENVIRONMENT

~liljamo/felu

3824bb8b8e8cf7ac220d88d850f66b8d16ded26c — Jonni Liljamo a month ago 8990f68
fix: log error on migration fail
1 files changed, 1 insertions(+), 1 deletions(-)

M internal/db/migrations.go
M internal/db/migrations.go => internal/db/migrations.go +1 -1
@@ 40,7 40,7 @@ func runMigrations() {
				slog.Info("Running migration", slog.Int("version", i+1)) // + 1 is just a visual thing
				_, err := DBConn.Exec(migrations[i])
				if err != nil {
					slog.Error("Migration failed to run!", slog.Int("version", i))
					slog.Error("Migration failed to run!", slog.Int("version", i), slog.String("error", err.Error()))
					os.Exit(1)
				}
			}