Доски желаний и политика награждения
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m0s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m0s
This commit is contained in:
13
play-life-backend/migrations/024_add_reward_policy.sql
Normal file
13
play-life-backend/migrations/024_add_reward_policy.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
-- Migration: Add reward_policy to tasks table
|
||||
-- This migration adds reward_policy column for wishlist tasks
|
||||
-- If the column already exists (from migration 023), this will be a no-op
|
||||
|
||||
-- ============================================
|
||||
-- Modify: tasks - добавляем политику награждения для wishlist задач
|
||||
-- ============================================
|
||||
ALTER TABLE tasks
|
||||
ADD COLUMN IF NOT EXISTS reward_policy VARCHAR(20) DEFAULT 'personal';
|
||||
|
||||
COMMENT ON COLUMN tasks.reward_policy IS
|
||||
'For wishlist tasks: personal = only if user completes, shared = anyone completes';
|
||||
|
||||
Reference in New Issue
Block a user