Sindbad~EG File Manager

Current Path : /home/copmadinaarea/thecopmadinaarea.org/portal/sql/
Upload File :
Current File : /home/copmadinaarea/thecopmadinaarea.org/portal/sql/update_program_attendance_url.sql

-- Update Program Attendance module URL to point to live-qr.php
-- Run this SQL to fix the sidebar link

UPDATE module_management 
SET module_url = 'modules/attendance/live-qr.php'
WHERE module_name LIKE '%Program Attendance%' 
   OR module_name LIKE '%Attendance%';

-- If the module doesn't exist, insert it
INSERT IGNORE INTO module_management (
    module_name, 
    module_description, 
    module_icon, 
    module_url, 
    display_order, 
    required_role, 
    is_active,
    category
) VALUES (
    'Program Attendance',
    'Record attendance for church programs using QR codes',
    'qrcode',
    'modules/attendance/live-qr.php',
    25,
    'assembly',
    1,
    'Event Management'
);

-- Verify the update
SELECT id, module_name, module_url, is_active FROM module_management 
WHERE module_name LIKE '%Attendance%';

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists