diff --git a/internal/database/queries.sql.go b/internal/database/queries.sql.go index 90f58889..e6f02e03 100644 --- a/internal/database/queries.sql.go +++ b/internal/database/queries.sql.go @@ -18317,7 +18317,7 @@ func (q *Queries) UpdateCollectionRulesJSON(ctx context.Context, arg UpdateColle } const UpdateCollectionViewSettings = `-- name: UpdateCollectionViewSettings :exec -UPDATE collections SET view_settings = $2, updated_at = NOW() WHERE id = $1 +UPDATE collections SET view_settings = $2 WHERE id = $1 ` type UpdateCollectionViewSettingsParams struct { @@ -18327,6 +18327,10 @@ type UpdateCollectionViewSettingsParams struct { // A2c §2.4: provenance + playlist flags on an existing collection without // touching the rest of the row. +// (Historical bug, fixed 2026-10-30: this wrote `updated_at = NOW()` but +// collections has no updated_at column — the scanner's series-import +// call has been failing silently, its error discarded. Fixed by +// dropping the phantom column write.) func (q *Queries) UpdateCollectionViewSettings(ctx context.Context, arg UpdateCollectionViewSettingsParams) error { _, err := q.db.Exec(ctx, UpdateCollectionViewSettings, arg.ID, arg.ViewSettings) return err diff --git a/internal/database/queries/queries.sql b/internal/database/queries/queries.sql index 3433ad6e..a0b163b8 100644 --- a/internal/database/queries/queries.sql +++ b/internal/database/queries/queries.sql @@ -3496,7 +3496,11 @@ RETURNING *; -- A2c §2.4: provenance + playlist flags on an existing collection without -- touching the rest of the row. -- name: UpdateCollectionViewSettings :exec -UPDATE collections SET view_settings = $2, updated_at = NOW() WHERE id = $1; +-- (Historical bug, fixed 2026-10-30: this wrote `updated_at = NOW()` but +-- collections has no updated_at column — the scanner's series-import +-- call has been failing silently, its error discarded. Fixed by +-- dropping the phantom column write.) +UPDATE collections SET view_settings = $2 WHERE id = $1; -- Smart-collection match semantics (plan item 2.4): flip any|all on its -- own channel — the rules page toggle writes exactly this column.