From 36f0968df0d95c14369068879de07a1a034a5193 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Tue, 16 Dec 2025 12:07:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=BF=81=E7=A7=BB=E4=B8=ADAUTO=5FRECOVER=5FDIRTY?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E5=88=A4=E6=96=AD=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E9=BB=98=E8=AE=A4=E5=90=AF=E7=94=A8=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/container/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/container/container.go b/internal/container/container.go index 0d51acd0..0df1e411 100644 --- a/internal/container/container.go +++ b/internal/container/container.go @@ -292,7 +292,7 @@ func initDatabase(cfg *config.Config) (*gorm.DB, error) { if os.Getenv("AUTO_MIGRATE") != "false" { logger.Infof(context.Background(), "Running database migrations...") - autoRecover := os.Getenv("AUTO_RECOVER_DIRTY") == "true" + autoRecover := os.Getenv("AUTO_RECOVER_DIRTY") != "false" migrationOpts := database.MigrationOptions{ AutoRecoverDirty: autoRecover, }