in the above patch.sql, if i removed the line that starts with ALTER, then the patch run successfully.