when is_list(U) orelse is_list(S) ->
?INFO_MSG("Mnesia table 'offline_msg' will be converted to binary", []),
true;
+need_transform({offline_msg, _, _, _, _, _, _, _}) ->
+ true;
need_transform(_) ->
false.
+transform({offline_msg, {U, S}, Timestamp, Expire, From, To, _, Packet}) ->
+ #offline_msg{us = {U, S}, timestamp = Timestamp, expire = Expire,
+ from = From ,to = To, packet = Packet};
transform(#offline_msg{us = {U, S}, from = From, to = To,
packet = El} = R) ->
R#offline_msg{us = {iolist_to_binary(U), iolist_to_binary(S)},