ALTER TABLE characters
    ADD COLUMN front_image_url VARCHAR(1024) NULL AFTER image_url,
    ADD COLUMN front_image_tos_key VARCHAR(512) NULL AFTER image_tos_key,
    ADD COLUMN side_image_url VARCHAR(1024) NULL AFTER front_image_url,
    ADD COLUMN side_image_tos_key VARCHAR(512) NULL AFTER front_image_tos_key,
    ADD COLUMN back_image_url VARCHAR(1024) NULL AFTER side_image_url,
    ADD COLUMN back_image_tos_key VARCHAR(512) NULL AFTER side_image_tos_key;

UPDATE characters
SET front_image_url = image_url,
    front_image_tos_key = image_tos_key
WHERE image_url IS NOT NULL
  AND (front_image_url IS NULL OR front_image_url = '');
