dashore-incubator/drizzle/0002_curly_spectrum.sql
Nicholai abb6a421d8 feat(wishlist): add reddit-style upvote/downvote for items
Replace single vote button with up/down voting system:
- Users can upvote OR downvote (not both)
- Clicking same vote removes it, different vote changes it
- Items sorted by score (upvotes - downvotes) by default
- Score displayed with color coding (green/red/muted)

Also adds PDF/CSV export with jspdf and onSuccess callback
for add dialog refresh.
2026-01-22 03:33:21 -07:00

5 lines
295 B
SQL

-- SQLite doesn't support ADD COLUMN with NOT NULL without a default
-- So we need to set a default and then remove it, or use a temp table approach
-- Using default approach since SQLite allows adding column with default
ALTER TABLE `wishlist_votes` ADD `vote_type` text NOT NULL DEFAULT 'up';