Fix UserListManager insert statement

This commit is contained in:
gpt-engineer-app[bot]
2025-10-03 14:19:15 +00:00
parent a595976924
commit b8f1efee97
2 changed files with 18 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
-- ═══════════════════════════════════════════════════════════════════
-- MIGRATION: Remove Legacy items Column from user_top_lists
-- ═══════════════════════════════════════════════════════════════════
--
-- This migration removes the deprecated items jsonb column from
-- user_top_lists table. List items are now stored relationally in
-- the user_top_list_items table.
--
-- SAFETY: Verified that no data exists in the items column and all
-- code references use the relational user_top_list_items table.
-- ═══════════════════════════════════════════════════════════════════
-- Drop the legacy items column
ALTER TABLE user_top_lists
DROP COLUMN IF EXISTS items;
-- Add comment to document the relational approach
COMMENT ON TABLE user_top_list_items IS 'Stores list items relationally - replaces user_top_lists.items JSON column';