1
0
mirror of https://github.com/UzixLS/migresia.git synced 2025-07-18 23:01:21 +03:00

Forgot to change one call back to list_nodes

This commit is contained in:
Christopher Phillips
2013-11-21 13:11:19 -05:00
parent 93acf0338f
commit e0c060a125

View File

@ -47,7 +47,7 @@ ensure_schema_table_exists() ->
case lists:member(?TABLE, mnesia:system_info(tables)) of
true -> ok;
false -> io:format("Table schema_migration not found, creating...~n", []),
Attr = [{type, ordered_set}, {disc_copies, migresia:list_disc_copy_nodes()}],
Attr = [{type, ordered_set}, {disc_copies, migresia:list_nodes()}],
case mnesia:create_table(?TABLE, Attr) of
{atomic, ok} -> io:format(" => created~n", []), ok;
{aborted, Reason} -> {error, Reason}