From 8ce328fafd9b2ad152f0afc16176cf01e1e66669 Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 27 Dec 2023 13:04:26 +0100 Subject: model: Inject test data into database This is useful for debugging and testing. --- model/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'model/database.go') diff --git a/model/database.go b/model/database.go index 8ce1897..fac4d35 100644 --- a/model/database.go +++ b/model/database.go @@ -38,7 +38,7 @@ func InitDatabase() { log.Fatal(err) } - for _, v := range []string{`migrate`} { + for _, v := range []string{`migrate`, `testdata`} { query, err := GetSql(v) if err != nil { log.Fatal(err) -- cgit v1.2.3-70-g09d2