mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
add auto-clear-sql param to core
This commit is contained in:
@@ -214,6 +214,10 @@ SWITCH_DECLARE(void) switch_core_db_test_reactive(switch_core_db_t *db, char *te
|
||||
{
|
||||
char *errmsg;
|
||||
|
||||
if (!switch_test_flag((&runtime), SCF_CLEAR_SQL)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!switch_test_flag((&runtime), SCF_AUTO_SCHEMAS)) {
|
||||
switch_core_db_exec(db, test_sql, NULL, NULL, NULL);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user