
update page
set name = if(length(name) > 1 and substring(name, length(name), 1) = '/', substring(name, 1, length(name) - 1), name);

