Added upgrade script generation to 5.12