-- Update existing follow task to use requirement=1 for News channel
-- Update title to "Follow our News channel"
UPDATE `tasks` 
SET `title` = 'Follow our News channel', 
    `description` = 'Follow our News channel',
    `requirement` = 1
WHERE `type` = 'follow' AND `requirement` = 1;

-- Add new follow task for Withdrawals channel (requirement=2)
-- reward_amount is in bigint format (5 Stars = 5000000)
-- Only insert if it doesn't already exist (check by type and requirement)
INSERT INTO `tasks` (`type`, `requirement`, `reward_amount`, `reward_type`, `display_order`, `title`, `description`) 
SELECT 'follow', 2, 5000000, 'Stars', 2, 'Follow Proof of payment channel', 'Follow Proof of payment channel'
WHERE NOT EXISTS (
    SELECT 1 FROM `tasks` WHERE `type` = 'follow' AND `requirement` = 2
);

