From aae2e08ccaad9e0233daa5b79ab7bb5626d2221c Mon Sep 17 00:00:00 2001 From: Timothy Vanderaerden Date: Wed, 16 Dec 2020 15:31:47 +0100 Subject: [PATCH] [Core] Databases: Fix duplicate key name 'recovery3' Fixes: (create index recovery3 on recovery(runtime_uuid)) to database: Duplicate key name 'recovery3' --- src/switch_core_sqldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index 98c50c0d8d..19f80aaf9f 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -3695,7 +3695,7 @@ switch_status_t switch_core_sqldb_start(switch_memory_pool_t *pool, switch_bool_ switch_cache_db_create_schema(sql_manager.dbh, "create index recovery1 on recovery(technology)", NULL); switch_cache_db_create_schema(sql_manager.dbh, "create index recovery2 on recovery(profile_name)", NULL); switch_cache_db_create_schema(sql_manager.dbh, "create index recovery3 on recovery(uuid)", NULL); - switch_cache_db_create_schema(sql_manager.dbh, "create index recovery3 on recovery(runtime_uuid)", NULL); + switch_cache_db_create_schema(sql_manager.dbh, "create index recovery4 on recovery(runtime_uuid)", NULL);