Revert "fix(bookmarks): upsert on title conflict so position upgrades don't 500"

This reverts commit 27b3dcb69f.
This commit is contained in:
2026-08-30 21:01:59 -04:00
parent 27b3dcb69f
commit b1eda696f1
5 changed files with 6 additions and 50 deletions
+1 -5
View File
@@ -1,6 +1,6 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.31.1
// sqlc v1.30.0
package database
@@ -60,10 +60,6 @@ type Querier interface {
// Libraries queries
CreateLibrary(ctx context.Context, arg CreateLibraryParams) (Libraries, error)
CreateMediaBookmark(ctx context.Context, arg CreateMediaBookmarkParams) (MediaBookmarks, error)
// The dedup key can change while the title stays the same (e.g. a client
// upgrading a bookmark from percentage-only to a CFI position), so the
// title UNIQUE constraint races the dedup-key lookup. Upsert on the title
// slot: the conflicting row is by definition the same bookmark.
CreateMediaBookmarkFull(ctx context.Context, arg CreateMediaBookmarkFullParams) (MediaBookmarks, error)
// Media Highlights queries
CreateMediaHighlight(ctx context.Context, arg CreateMediaHighlightParams) (MediaHighlights, error)