anchor.diff:               ok).
   create_gateway_nodes(Mode, Nodes) ->
       mnesia:create_table(
  -      gateway_nodes,
  +      ?TBL_GATEWAY_NODES,
         [{Mode, Nodes},
          {type, set},
          {record_name, node_state},
  
positive.code: -spec(update_system_config(#system_conf{}) ->
               ok | {error, any()}).
  update_system_config(SystemConfig) ->
      F = fun()-> mnesia:write(system_conf, SystemConfig, write) end,
      leo_mnesia:write(F).
  
  
  
negative.code:              {ok, list()} | not_found | {error, any()}).
  get_histories_all() ->
      F = fun() ->
                  Q1 = qlc:q([X || X <- mnesia:table(?TBL_HISTORIES)]),
                  Q2 = qlc:sort(Q1, [{order, ascending}]),
                  qlc:e(Q2)
          end,
  