-- Migration to update image_url fields to support base64 encoding
-- Run this on your database to fix the 500 error

USE xsular_parfum;

-- Update products table to support large base64 images
ALTER TABLE products MODIFY COLUMN image_url LONGTEXT;

-- Update categories table to support large base64 images
ALTER TABLE categories MODIFY COLUMN image_url LONGTEXT;

-- Verification
DESCRIBE products;
DESCRIBE categories;
