feat: добавлена функциональность откладывания задач (next_show_at)
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s
This commit is contained in:
14
play-life-backend/migrations/017_add_next_show_at.sql
Normal file
14
play-life-backend/migrations/017_add_next_show_at.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- Migration: Add next_show_at field to tasks table
|
||||
-- This script adds the next_show_at field for postponing tasks
|
||||
|
||||
-- ============================================
|
||||
-- Add next_show_at column
|
||||
-- ============================================
|
||||
ALTER TABLE tasks
|
||||
ADD COLUMN IF NOT EXISTS next_show_at TIMESTAMP WITH TIME ZONE;
|
||||
|
||||
-- ============================================
|
||||
-- Comments for documentation
|
||||
-- ============================================
|
||||
COMMENT ON COLUMN tasks.next_show_at IS 'Date when task should be shown again (NULL means use last_completed_at + period)';
|
||||
|
||||
Reference in New Issue
Block a user