MDL-48549 mod_assign: delete entries from the flags/mapping tables
MDL-48549 mod_assign: added upgrade to clean the tables