From a03ceec154ef605a83087e815cf71e6bfc9e1a2a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 19 Jan 2018 13:29:45 -0500 Subject: [PATCH] Fix Day=>Wek --- db/zm_update-1.31.24.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/zm_update-1.31.24.sql b/db/zm_update-1.31.24.sql index 9f7bad11c..008618baa 100644 --- a/db/zm_update-1.31.24.sql +++ b/db/zm_update-1.31.24.sql @@ -35,7 +35,7 @@ PREPARE stmt FROM @sqlstmt; EXECUTE stmt; set @exist := (select count(*) from information_schema.statistics where table_name = 'Events_Week' and index_name = 'Events_Week_MonitorId_idx' and table_schema = database()); -set @sqlstmt := if( @exist > 0, "SELECT 'Events_Week_MonitorId_idx INDEX already exists.'", "CREATE INDEX `Events_Week_MonitorId_idx` ON `Events_Day` (`MonitorId`)"); +set @sqlstmt := if( @exist > 0, "SELECT 'Events_Week_MonitorId_idx INDEX already exists.'", "CREATE INDEX `Events_Week_MonitorId_idx` ON `Events_Week` (`MonitorId`)"); PREPARE stmt FROM @sqlstmt; EXECUTE stmt;