1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Refactor SQL migrations

- Avoid embedding SQL files into binary
- Allow more flexible changes by using Go functions
This commit is contained in:
Frédéric Guillot 2020-12-20 18:24:04 -08:00 committed by fguillot
parent f88e93a0b9
commit 5b74083b5f
49 changed files with 481 additions and 561 deletions

View file

@ -215,7 +215,6 @@ func main() {
generateBinaryBundle("ui/static/bin.go", glob("ui/static/bin/*"))
generateBundle("database/sql.go", "database", "SqlMap", glob("database/sql/*.sql"))
generateBundle("template/views.go", "template", "templateViewsMap", glob("template/html/*.html"))
generateBundle("template/common.go", "template", "templateCommonMap", glob("template/html/common/*.html"))
generateBundle("locale/translations.go", "locale", "translations", glob("locale/translations/*.json"))