mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-14 15:24:13 +00:00
FS-7187 add switch_cache_db_create_schema() to test for SCF_AUTO_SCHEMAS flag
This commit is contained in:
1 parent
608d3e2425
commit
01dcb74f33
5 files changed
+54
-31
No files matched your search
@@ -28,6 +28,7 @@
|
||||
* Mathieu Rene <mathieu.rene@gmail.com>
|
||||
* Bret McDanel <trixter AT 0xdecafbad.com>
|
||||
* Rupa Schomaker <rupa@rupa.com>
|
||||
* Emmanuel Schmidbauer <eschmidbauer@gmail.com>
|
||||
*
|
||||
* mod_db.c -- Implements simple db API, group support, and limit db backend
|
||||
*
|
||||
@@ -325,7 +326,7 @@ static switch_status_t do_config()
|
||||
switch_cache_db_test_reactive(dbh, "select * from group_data", NULL, group_sql);
|
||||
|
||||
for (x = 0; indexes[x]; x++) {
|
||||
switch_cache_db_execute_sql(dbh, indexes[x], NULL);
|
||||
switch_cache_db_create_schema(dbh, indexes[x], NULL);
|
||||
}
|
||||
|
||||
switch_cache_db_release_db_handle(&dbh);
|
||||
|
||||
@@ -782,7 +782,7 @@ static vm_profile_t *load_profile(const char *profile_name)
|
||||
|
||||
for (x = 0; vm_index_list[x]; x++) {
|
||||
errmsg = NULL;
|
||||
switch_cache_db_execute_sql(dbh, vm_index_list[x], &errmsg);
|
||||
switch_cache_db_create_schema(dbh, vm_index_list[x], &errmsg);
|
||||
switch_safe_free(errmsg);
|
||||
}
|
||||
|
||||
|
||||
@@ -2271,7 +2271,7 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
|
||||
free(test_sql);
|
||||
|
||||
for (x = 0; indexes[x]; x++) {
|
||||
switch_cache_db_execute_sql(dbh, indexes[x], NULL);
|
||||
switch_cache_db_create_schema(dbh, indexes[x], NULL);
|
||||
}
|
||||
|
||||
switch_cache_db_release_db_handle(&dbh);
|
||||
|
||||
Reference in new issue
Block a user