mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
New schema support for tests. (#2355)
This commit is contained in:
parent
d28064518b
commit
89d91b609a
@ -1083,9 +1083,21 @@ create_sql_tables(sqlite, _BaseDir) ->
|
||||
create_sql_tables(Type, BaseDir) ->
|
||||
{VHost, File} = case Type of
|
||||
mysql ->
|
||||
{?MYSQL_VHOST, "mysql.sql"};
|
||||
Path = case ejabberd_sql:use_new_schema() of
|
||||
true ->
|
||||
"mysql.new.sql";
|
||||
false ->
|
||||
"mysql.sql"
|
||||
end,
|
||||
{?MYSQL_VHOST, Path};
|
||||
pgsql ->
|
||||
{?PGSQL_VHOST, "pg.sql"}
|
||||
Path = case ejabberd_sql:use_new_schema() of
|
||||
true ->
|
||||
"pg.new.sql";
|
||||
false ->
|
||||
"pg.sql"
|
||||
end,
|
||||
{?PGSQL_VHOST, Path}
|
||||
end,
|
||||
SQLFile = filename:join([BaseDir, "sql", File]),
|
||||
CreationQueries = read_sql_queries(SQLFile),
|
||||
|
Loading…
Reference in New Issue
Block a user