From 7c2068bc78210e87fddeab081efab824272f2076 Mon Sep 17 00:00:00 2001 From: "Andrew Jackson (Ajax)" Date: Fri, 1 Dec 2023 10:02:37 -0600 Subject: [PATCH] fix: lp mig: do not quote placeholder --- cmd/lotus-provider/migrate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-provider/migrate.go b/cmd/lotus-provider/migrate.go index e0a005104..d95b6890a 100644 --- a/cmd/lotus-provider/migrate.go +++ b/cmd/lotus-provider/migrate.go @@ -191,7 +191,7 @@ func fromMiner(cctx *cli.Context) (err error) { if err != nil { return xerrors.Errorf("Cannot get default config: %w", err) } - _, err = db.Exec(ctx, "INSERT INTO harmony_config (title, config) VALUES ('base', '$1')", cfg) + _, err = db.Exec(ctx, "INSERT INTO harmony_config (title, config) VALUES ('base', $1)", cfg) if err != nil { return err