From a28253fee390eca8746301ce2b060b127b2889f2 Mon Sep 17 00:00:00 2001 From: Namdak Tonpa Date: Fri, 16 Nov 2018 04:20:27 +0200 Subject: [PATCH] schema --- src/kvs.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kvs.erl b/src/kvs.erl index 2dfa985..bf83392 100644 --- a/src/kvs.erl +++ b/src/kvs.erl @@ -72,7 +72,7 @@ table(Name) when is_atom(Name) -> lists:keyfind(rname(Name),#table.name,tables() table(_) -> false. dir(#kvs{mod=DBA}) -> DBA:dir(). info(T,#kvs{mod=DBA}) -> DBA:info(T). -modules() -> kvs:config(schema). +modules() -> application:get_env(kvs,schema,[kvs_user, kvs_acl, kvs_feed, kvs_subscription ]). containers() -> lists:flatten([ [ {T#table.name,T#table.fields} || T=#table{container=true} <- (M:metainfo())#schema.tables ]