Remove remaining SQLite-only schema and docs residue.

This commit is contained in:
2026-08-21 23:55:09 -07:00
parent a249965fc1
commit f31f352838
4 changed files with 5 additions and 16 deletions
+1 -5
View File
@@ -10,17 +10,13 @@ import (
_ "github.com/jackc/pgx/v5/stdlib"
)
// applySchema runs semicolon-separated DDL statements, skipping PRAGMA lines.
// applySchema runs semicolon-separated DDL statements.
func applySchema(db *sql.DB, schema string) error {
for _, stmt := range strings.Split(schema, ";") {
stmt = strings.TrimSpace(stmt)
if stmt == "" {
continue
}
upper := strings.ToUpper(stmt)
if strings.HasPrefix(upper, "PRAGMA") {
continue
}
if _, err := db.Exec(stmt); err != nil {
return fmt.Errorf("%w: %s", err, stmt)
}