-- Add visibility and display order columns to page_element_configs
ALTER TABLE page_element_configs ADD COLUMN IF NOT EXISTS visible BOOLEAN DEFAULT true;
ALTER TABLE page_element_configs ADD COLUMN IF NOT EXISTS display_order INTEGER DEFAULT 0;

-- Create index on display_order for faster sorting
CREATE INDEX IF NOT EXISTS idx_page_element_configs_display_order ON page_element_configs(display_order);
