Migration from V3 to V4 - Script Error

the error code says syntax error, i assume there isnt an actual syntax error in the script, so it must be some compatibily issue.
Are you sure the new db has the same compatiblity as the old db?