summaryrefslogtreecommitdiff
path: root/src/mod_irc_mnesia.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2016-11-30 11:09:17 +0100
committerChristophe Romain <christophe.romain@process-one.net>2016-11-30 11:09:17 +0100
commit92db9ff10546e4a033621fbfd7d66d2aa3bf55e8 (patch)
tree1f80319bd731156151baa942d471edf02a69008f /src/mod_irc_mnesia.erl
parentCleanup admin_extra, add few functions (diff)
Improve handling of mnesia schema
Diffstat (limited to 'src/mod_irc_mnesia.erl')
-rw-r--r--src/mod_irc_mnesia.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_irc_mnesia.erl b/src/mod_irc_mnesia.erl
index 95cceb54..e23f5a26 100644
--- a/src/mod_irc_mnesia.erl
+++ b/src/mod_irc_mnesia.erl
@@ -21,7 +21,7 @@
%%% API
%%%===================================================================
init(_Host, _Opts) ->
- mnesia:create_table(irc_custom,
+ ejabberd_mnesia:create(?MODULE, irc_custom,
[{disc_copies, [node()]},
{attributes, record_info(fields, irc_custom)}]),
update_table().