mirror of
https://github.com/NicholaiVogel/dashore-incubator.git
synced 2026-03-31 06:40:32 +00:00
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.
5 lines
295 B
SQL
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';
|