ALTER TABLE levels
    ADD COLUMN IF NOT EXISTS title VARCHAR(255),
    ADD COLUMN IF NOT EXISTS description TEXT,
    ADD COLUMN IF NOT EXISTS thumbnail TEXT;

UPDATE levels
SET title = cefr_level
WHERE title IS NULL OR trim(title) = '';

ALTER TABLE levels
    ALTER COLUMN title SET NOT NULL;
