1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-05 19:42:11 +02:00

Initial SQL auto-update version

This commit is contained in:
Evgeniy Khramtsov 2018-07-18 14:01:29 +03:00
parent 2539be1a04
commit 223f0c4ac8
35 changed files with 535 additions and 3784 deletions

View file

@ -52,7 +52,12 @@
init(Host, Opts) ->
case gen_mod:ram_db_mod(Host, Opts, mod_muc) of
?MODULE ->
clean_tables(Host);
case ejabberd_sql:load_schema(Host, mod_muc) of
ok ->
clean_tables(Host);
Err ->
Err
end;
_ ->
ok
end.