Migrate old status numbers to status relations