correction bug inattention

This commit is contained in:
2026-08-08 23:06:32 +02:00
parent 480734046b
commit 98bd52d7c2
+2
View File
@@ -4,6 +4,7 @@ import (
"database/sql"
"fmt"
"reflect"
"strings"
"time"
)
@@ -77,6 +78,7 @@ func (t Table[T]) Sync() error {
}
columns[i] = c
}
sql := fmt.Sprintf("create table %s (%s)", t.tablename, strings.Join(columns, ","))
_, err := t.db.Exec(sql)
if err != nil {
return err