Sindbad~EG File Manager
-- Add missing template columns to events table
-- Run this SQL to add the event_template_id and form_template_id columns
USE copmadinaconf;
-- Add event_template_id column
ALTER TABLE events
ADD COLUMN event_template_id INT(11) NULL AFTER registration_fee;
-- Add form_template_id column
ALTER TABLE events
ADD COLUMN form_template_id INT(11) NULL AFTER event_template_id;
-- Add foreign key constraints if the template tables exist
-- Note: Uncomment these lines if event_templates and event_form_templates tables exist
-- ALTER TABLE events
-- ADD CONSTRAINT fk_events_event_template
-- FOREIGN KEY (event_template_id) REFERENCES event_templates(id) ON DELETE SET NULL;
-- ALTER TABLE events
-- ADD CONSTRAINT fk_events_form_template
-- FOREIGN KEY (form_template_id) REFERENCES event_form_templates(id) ON DELETE SET NULL;
-- Verify the changes
DESCRIBE events;
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists