Files
play-life/play-life-backend/migrations_old/018_add_repetition_date.sql
poignatov 90643c504a
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m19s
4.0.0: Исправлена обработка старых дампов
2026-01-25 16:41:50 +03:00

17 lines
764 B
SQL

-- Migration: Add repetition_date field to tasks table
-- This script adds the repetition_date field for pattern-based recurring tasks
-- Format examples: "2 week" (2nd day of week), "15 month" (15th day of month), "02-01 year" (Feb 1st)
-- ============================================
-- Add repetition_date column
-- ============================================
ALTER TABLE tasks
ADD COLUMN IF NOT EXISTS repetition_date TEXT;
-- ============================================
-- Comments for documentation
-- ============================================
COMMENT ON COLUMN tasks.repetition_date IS 'Pattern-based repetition: "N week" (day of week 1-7), "N month" (day of month 1-31), "MM-DD year" (specific date). Mutually exclusive with repetition_period.';