mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:21:10 +02:00
Projects included: - maerchenzauber (NestJS backend + Expo mobile + SvelteKit web + Astro landing) - manacore (Expo mobile + SvelteKit web + Astro landing) - manadeck (NestJS backend + Expo mobile + SvelteKit web) - memoro (Expo mobile + SvelteKit web + Astro landing) This commit preserves the current state before monorepo restructuring. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
21 lines
647 B
SQL
21 lines
647 B
SQL
-- Check if trigger exists
|
|
SELECT
|
|
trigger_name,
|
|
event_manipulation,
|
|
event_object_table,
|
|
action_statement
|
|
FROM information_schema.triggers
|
|
WHERE trigger_name = 'feedback_vote_count_trigger';
|
|
|
|
-- Check current vote count and actual vote records for the problematic feedback
|
|
SELECT
|
|
uf.id,
|
|
uf.title,
|
|
uf.vote_count,
|
|
uf.upvote_count,
|
|
(SELECT COUNT(*) FROM feedback_votes WHERE feedback_id = uf.id) as actual_votes
|
|
FROM user_feedback uf
|
|
WHERE uf.id = '7367caac-b773-4947-b1fd-a5495c123be7';
|
|
|
|
-- Check all votes for this feedback
|
|
SELECT * FROM feedback_votes WHERE feedback_id = '7367caac-b773-4947-b1fd-a5495c123be7';
|