feat: add goreleaser

This commit is contained in:
Simon Ding
2024-09-29 14:27:01 +08:00
parent ce25c090f5
commit 5d726dbcf1
25 changed files with 2192 additions and 48 deletions

View File

@@ -6,6 +6,7 @@ import (
"context"
"errors"
"fmt"
"polaris/ent/blocklist"
"polaris/ent/downloadclients"
"polaris/ent/episode"
"polaris/ent/history"
@@ -81,6 +82,7 @@ var (
func checkColumn(table, column string) error {
initCheck.Do(func() {
columnCheck = sql.NewColumnCheck(map[string]func(string) bool{
blocklist.Table: blocklist.ValidColumn,
downloadclients.Table: downloadclients.ValidColumn,
episode.Table: episode.ValidColumn,
history.Table: history.ValidColumn,