mirror of
https://github.com/UzixLS/migresia.git
synced 2025-07-19 07:11:28 +03:00
Read mnesia nodes from the mnesia schema
This commit is contained in:
@ -21,10 +21,4 @@ execute_up({Module, Short}) ->
|
|||||||
io:format(" => done~n", []).
|
io:format(" => done~n", []).
|
||||||
|
|
||||||
list_nodes() ->
|
list_nodes() ->
|
||||||
Node = node(),
|
mnesia:table_info(schema, disc_copies).
|
||||||
if Node == nonode@nohost ->
|
|
||||||
io:format("Warning: Erlang doesn't seem to be running in distributed mode.~n", []);
|
|
||||||
true ->
|
|
||||||
ok
|
|
||||||
end,
|
|
||||||
[Node].
|
|
||||||
|
Reference in New Issue
Block a user