Fix alters.sql structure