1
2 helper = repo.system_source.dbhelper
3 sql('DROP INDEX entities_extid_idx')
4 sql(helper.sql_create_index('entities', 'extid', True))
5 commit()