mirror of
https://github.com/processone/ejabberd
synced 2025-10-04 10:19:31 +02:00
Add print_sql_schema ejabberdctl command
This commit is contained in:
parent
6eff14a71d
commit
66d701e788
26 changed files with 293 additions and 139 deletions
|
@ -20,6 +20,7 @@
|
|||
|
||||
%% API
|
||||
-export([init/3]).
|
||||
-export([sql_schemas/0]).
|
||||
|
||||
-include("ejabberd_sql_pt.hrl").
|
||||
|
||||
|
@ -27,13 +28,13 @@
|
|||
%%% API
|
||||
%%%===================================================================
|
||||
init(_Host, ServerHost, _Opts) ->
|
||||
ejabberd_sql_schema:update_schema(ServerHost, ?MODULE, schemas()),
|
||||
ejabberd_sql_schema:update_schema(ServerHost, ?MODULE, sql_schemas()),
|
||||
ok.
|
||||
|
||||
%%%===================================================================
|
||||
%%% Internal functions
|
||||
%%%===================================================================
|
||||
schemas() ->
|
||||
sql_schemas() ->
|
||||
[#sql_schema{
|
||||
version = 1,
|
||||
tables =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue