-- Fix für die fehlerhafte Migration - entfernt doppelte Bindestriche
UPDATE licenses 
SET license_key = REPLACE(license_key, 'AF--', 'AF-')
WHERE license_key LIKE 'AF--%';

UPDATE licenses 
SET license_key = REPLACE(license_key, '6--', '6-')
WHERE license_key LIKE '%6--%';

-- Zeige die korrigierten Keys
SELECT id, license_key, license_type 
FROM licenses 
ORDER BY id;