[ADD] Migration scripts for the project addon

When searching for res_ids it gets a list of [1,2,3].
Right now it will try to search on this directly.
Needs to change to [('id', 'in', res_ids)]