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:
parent
2539be1a04
commit
223f0c4ac8
35 changed files with 535 additions and 3784 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue