From 1096e6732c6073228f78d7ab24be29780713f64c Mon Sep 17 00:00:00 2001 From: Marc Olivier Chouinard Date: Tue, 15 Feb 2011 02:24:43 -0500 Subject: [PATCH] switch_core_sqldb: Index column name wrong on table registrations. (This wont create the index for people who already have the table) --- 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 120b2565cf..f135e9586d 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -1639,7 +1639,7 @@ static char create_registrations_sql[] = " network_proto VARCHAR(256),\n" " hostname VARCHAR(256)\n" ");\n" - "create index regindex1 on registrations (user,realm,hostname);\n"; + "create index regindex1 on registrations (reg_user,realm,hostname);\n"; SWITCH_DECLARE(switch_status_t) switch_core_add_registration(const char *user, const char *realm, const char *token, const char *url, uint32_t expires,