2011-02-07 08:56:07 -06:00
|
|
|
-module(timestamper).
|
|
|
|
-export([start/0, create_tables/1]).
|
|
|
|
|
|
|
|
start() ->
|
|
|
|
ok = application:load(mnesia),
|
|
|
|
ok = mnesia:start(),
|
|
|
|
ok.
|
|
|
|
|
|
|
|
create_tables(Nodes) ->
|
|
|
|
TableOpts = [{disc_copies, Nodes}],
|
|
|
|
{atomic, ok} = id_counter:create_table(TableOpts),
|
|
|
|
{atomic, ok} = ts_user:create_table(TableOpts),
|
|
|
|
{atomic, ok} = ts_timeline:create_table(TableOpts),
|
2011-03-11 12:32:06 +00:00
|
|
|
{atomic, ok} = ts_entry:create_table(TableOpts),
|
2011-02-07 08:56:07 -06:00
|
|
|
ok.
|