create v2.2 sql upgrade script