From b087046ed1a1bbda40a5b7f24cc6ec5ee2906186 Mon Sep 17 00:00:00 2001 From: Dylan Jennings Date: Fri, 11 Aug 2023 14:02:21 +1200 Subject: [PATCH] Fix file source example in readme Correct syntax is 2 slashes - 3 does not work. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c26999424..838a0b884 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ func main() { db, err := sql.Open("postgres", "postgres://localhost:5432/database?sslmode=enable") driver, err := postgres.WithInstance(db, &postgres.Config{}) m, err := migrate.NewWithDatabaseInstance( - "file:///migrations", + "file://migrations", "postgres", driver) m.Up() // or m.Step(2) if you want to explicitly set the number of migrations to run }