Files
play-life/play-life-backend/migrations/025_remove_conditions_without_user_id.sql
poignatov 6d468d6967
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m21s
Исправление отображения проектов в условиях
2026-01-19 13:07:17 +03:00

14 lines
650 B
SQL

-- Migration: Remove wishlist conditions without user_id
-- These conditions should not exist as every condition must have an owner
-- This migration removes orphaned conditions that were created before the fix
-- ============================================
-- Remove conditions without user_id
-- ============================================
DELETE FROM wishlist_conditions WHERE user_id IS NULL;
-- ============================================
-- Comments
-- ============================================
COMMENT ON COLUMN wishlist_conditions.user_id IS 'Owner of this condition. Each user has their own goals on shared boards. Required field.';