WIP Migration script with all fixes
This MR contains:
- Migration script with fixes for all bugs discovered during weekend.
- Fixed query for custom_op resulting in None result
- Added indexes present in new schema
- Removed indexes not present in new schema
Edited by Dariusz Kędzierski