25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Test: Enable update_sql_schema

- Test: Enable update_sql_schema by default
- Update test/README about new option
- enable new_schema in tests
This commit is contained in:
Badlop 2023-10-04 21:15:07 +02:00
parent 1076f8bfc2
commit ec13350b24
4 changed files with 8 additions and 2 deletions

View File

@ -17,7 +17,8 @@ $ psql template1
template1=# CREATE USER ejabberd_test WITH PASSWORD 'ejabberd_test';
template1=# CREATE DATABASE ejabberd_test;
template1=# GRANT ALL PRIVILEGES ON DATABASE ejabberd_test TO ejabberd_test;
$ psql ejabberd_test -f sql/pg.sql
# If you disabled the update_sql_schema option, create the schema manually:
# $ psql ejabberd_test -f sql/pg.sql
-------------------
MySQL
@ -26,7 +27,8 @@ $ mysql
mysql> CREATE USER 'ejabberd_test'@'localhost' IDENTIFIED BY 'ejabberd_test';
mysql> CREATE DATABASE ejabberd_test;
mysql> GRANT ALL ON ejabberd_test.* TO 'ejabberd_test'@'localhost';
$ mysql ejabberd_test < sql/mysql.sql
# If you disabled the update_sql_schema option, create the schema manually:
# $ mysql ejabberd_test < sql/mysql.sql
-------------------
MS SQL Server

View File

@ -161,6 +161,8 @@ certfiles:
new_sql_schema: NEW_SCHEMA
update_sql_schema: UPDATE_SQL_SCHEMA
api_permissions:
"public commands":
who: all

View File

@ -14,6 +14,7 @@ define_macro:
PUT_URL: "http://upload.@HOST@:@@web_port@@/upload"
GET_URL: "http://upload.@HOST@:@@web_port@@/upload"
NEW_SCHEMA: @@new_schema@@
UPDATE_SQL_SCHEMA: @@update_sql_schema@@
MYSQL_USER: "@@mysql_user@@"
MYSQL_SERVER: "@@mysql_server@@"
MYSQL_PORT: @@mysql_port@@

View File

@ -59,6 +59,7 @@ init_config(Config) ->
[{c2s_port, 5222},
{loglevel, 4},
{new_schema, false},
{update_sql_schema, true},
{s2s_port, 5269},
{stun_port, 3478},
{component_port, 5270},