Matomo database will be upgraded from version 4.14.2 to the new version 5.2.0.
The following dimensions will be updated: log_conversion.pageviews_before.
Important notes for large Matomo installations
If you have a large Matomo database, updates might take too long to run in the browser. In this situation, you can execute the updates from your command line:
php /var/www/be.symzo.stats/piwik/console core:update
If you manage a high traffic Matomo server, we recommend to momentarily disable visitor Tracking and put the Matomo User Interface in maintenance mode.
FYI: these are the SQL queries and console commands that will be executed to upgrade your database to Matomo 5.2.0
› Click here to view and copy the list of SQL queries and console commands that will get executed
# These SQL queries will be executed:
DELETE FROM `pw_archive_numeric_2004_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2004_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2004_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2004_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2004_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2004_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2004_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2004_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2004_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2004_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2004_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2004_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2004_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2004_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2004_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2005_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2005_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2005_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2005_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2005_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2005_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2005_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2005_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2005_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2005_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2005_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2005_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2005_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2005_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2005_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2005_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2005_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2005_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2005_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2005_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2005_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2005_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2005_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2005_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2005_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2005_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2005_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2005_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2005_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2005_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2005_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2005_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2005_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2005_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2005_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2005_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2006_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2006_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2006_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2006_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2006_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2006_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2006_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2006_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2006_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2006_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2006_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2006_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2006_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2006_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2006_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2006_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2006_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2006_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2006_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2006_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2006_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2006_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2006_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2006_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2006_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2006_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2006_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2006_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2006_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2006_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2006_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2006_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2006_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2006_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2006_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2006_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2007_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2007_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2007_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2007_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2007_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2007_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2007_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2007_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2007_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2007_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2007_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2007_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2007_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2007_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2007_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2007_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2007_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2007_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2007_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2007_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2007_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2007_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2007_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2007_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2007_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2007_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2007_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2007_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2007_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2007_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2007_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2007_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2007_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2007_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2007_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2007_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2008_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2008_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2008_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2008_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2008_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2008_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2008_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2008_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2008_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2008_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2008_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2008_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2008_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2008_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2008_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2008_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2008_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2008_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2008_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2008_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2008_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2008_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2008_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2008_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2008_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2008_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2008_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2008_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2008_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2008_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2008_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2008_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2008_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2008_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2008_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2008_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2009_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2009_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2009_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2009_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2009_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2009_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2009_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2009_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2009_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2009_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2009_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2009_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2009_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2009_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2009_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2009_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2009_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2009_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2009_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2009_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2009_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2009_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2009_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2009_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2009_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2009_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2009_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2009_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2009_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2009_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2009_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2009_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2009_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2009_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2009_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2009_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2010_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2010_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2010_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2010_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2010_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2010_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2010_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2010_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2010_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2010_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2010_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2010_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2010_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2010_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2010_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2010_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2010_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2010_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2010_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2010_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2010_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2010_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2010_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2010_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2010_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2010_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2010_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2010_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2010_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2010_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2010_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2010_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2010_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2010_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2010_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2010_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2011_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2011_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2011_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2011_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2011_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2011_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2011_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2011_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2011_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2011_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2011_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2011_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2011_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2011_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2011_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2011_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2011_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2011_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2011_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2011_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2011_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2011_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2011_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2011_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2011_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2011_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2011_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2011_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2011_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2011_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2011_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2011_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2011_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2011_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2011_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2011_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2012_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2012_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2012_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2012_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2012_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2012_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2012_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2012_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2012_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2012_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2012_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2012_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2012_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2012_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2012_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2012_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2012_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2012_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2012_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2012_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2012_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2012_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2012_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2012_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2012_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2012_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2012_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2012_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2012_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2012_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2012_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2012_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2012_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2012_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2012_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2012_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2013_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2013_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2013_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2013_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2013_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2013_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2013_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2013_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2013_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2013_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2013_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2013_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2013_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2013_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2013_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2013_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2013_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2013_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2013_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2013_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2013_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2013_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2013_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2013_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2013_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2013_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2013_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2013_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2013_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2013_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2013_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2013_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2013_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2013_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2013_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2013_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2014_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2014_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2014_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2014_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2014_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2014_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2014_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2014_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2014_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2014_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2014_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2014_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2014_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2014_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2014_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2014_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2014_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2014_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2014_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2014_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2014_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2014_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2014_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2014_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2014_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2014_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2014_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2014_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2014_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2014_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2014_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2014_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2014_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2014_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2014_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2014_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2015_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2015_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2015_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2015_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2015_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2015_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2015_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2015_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2015_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2015_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2015_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2015_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2015_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2015_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2015_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2015_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2015_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2015_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2015_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2015_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2015_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2015_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2015_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2015_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2015_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2015_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2015_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2015_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2015_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2015_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2015_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2015_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2015_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2015_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2015_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2015_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2016_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2016_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2016_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2016_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2016_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2016_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2016_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2016_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2016_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2016_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2016_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2016_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2016_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2016_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2016_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2016_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2016_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2016_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2016_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2016_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2016_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2016_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2016_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2016_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2016_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2016_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2016_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2016_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2016_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2016_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2016_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2016_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2016_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2016_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2016_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2016_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2017_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2017_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2017_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2017_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2017_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2017_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2017_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2017_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2017_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2017_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2017_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2017_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2017_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2017_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2017_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2017_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2017_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2017_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2017_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2017_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2017_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2017_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2017_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2017_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2017_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2017_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2017_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2017_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2017_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2017_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2017_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2017_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2017_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2017_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2017_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2017_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2018_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2018_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2018_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2018_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2018_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2018_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2018_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2018_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2018_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2018_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2018_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2018_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2018_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2018_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2018_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2018_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2018_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2018_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2018_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2018_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2018_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2018_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2018_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2018_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2018_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2018_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2018_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2018_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2018_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2018_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2018_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2018_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2018_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2018_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2018_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2018_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2019_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2019_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2019_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2019_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2019_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2019_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2019_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2019_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2019_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2019_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2019_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2019_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2019_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2019_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2019_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2019_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2019_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2019_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2019_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2019_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2019_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2019_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2019_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2019_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2019_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2019_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2019_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2019_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2019_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2019_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2019_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2019_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2019_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2019_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2019_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2019_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2020_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2020_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2020_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2020_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2020_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2020_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2020_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2020_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2020_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2020_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2020_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2020_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2020_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2020_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2020_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2020_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2020_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2020_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2020_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2020_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2020_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2020_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2020_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2020_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2020_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2020_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2020_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2020_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2020_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2020_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2020_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2020_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2020_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2020_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2020_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2020_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2021_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2021_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2021_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2021_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2021_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2021_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2021_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2021_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2021_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2021_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2021_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2021_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2021_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2021_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2021_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2021_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2021_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2021_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2021_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2021_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2021_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2021_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2021_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2021_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2021_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2021_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2021_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2021_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2021_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2021_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2021_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2021_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2021_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2021_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2021_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2021_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2022_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2022_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2022_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2022_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2022_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2022_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2022_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2022_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2022_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2022_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2022_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2022_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2022_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2022_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2022_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2022_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2022_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2022_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2022_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2022_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2022_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2022_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2022_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2022_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2022_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2022_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2022_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2022_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2022_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2022_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2022_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2022_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2022_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2022_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2022_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2022_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2023_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2023_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2023_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2023_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2023_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2023_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2023_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2023_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2023_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2023_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2023_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2023_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2023_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2023_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2023_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2023_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2023_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2023_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2023_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2023_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2023_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2023_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2023_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2023_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2023_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2023_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2023_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2023_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2023_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2023_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2023_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2023_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2023_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2023_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2023_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2023_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2024_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2024_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2024_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2024_02` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2024_02` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2024_02` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2024_03` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2024_03` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2024_03` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2024_04` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2024_04` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2024_04` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2024_05` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2024_05` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2024_05` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2024_06` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2024_06` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2024_06` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2024_07` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2024_07` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2024_07` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2024_08` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2024_08` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2024_08` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2024_09` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2024_09` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2024_09` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2024_10` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2024_10` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2024_10` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2024_11` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2024_11` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2024_11` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2024_12` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2024_12` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2024_12` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
DELETE FROM `pw_archive_numeric_2025_01` WHERE ts_archived is null;
ALTER TABLE `pw_archive_numeric_2025_01` DROP INDEX `index_idsite_dates_period`;
ALTER TABLE `pw_archive_numeric_2025_01` ADD INDEX index_idsite_dates_period (`idsite`, `date1`, `date2`, `period`, `name` (6));
ALTER TABLE `pw_user_token_auth` ADD COLUMN `post_only` TINYINT(2) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `pw_log_conversion` ADD COLUMN `pageviews_before` SMALLINT UNSIGNED DEFAULT NULL;
# These console commands will be run:
./console core:calculate-conversion-pages --dates=yesterday,today
# These SQL queries will be executed:
ALTER TABLE `pw_log_visit` ADD INDEX `index_idsite_idvisitor_time` (`idsite`, `idvisitor`, `visit_last_action_time`);
ALTER TABLE `pw_log_visit` DROP INDEX `index_idsite_idvisitor`;
# These console commands will be run:
./console plugin:activate "JsTrackerInstallCheck"
# These SQL queries will be executed:
ALTER TABLE `pw_user_token_auth` CHANGE `post_only` `secure_only` TINYINT(2) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `pw_user` ADD COLUMN `ts_changes_shown` TIMESTAMP NULL;
# These console commands will be run:
./console config:set --section="database" --key="collation" --value="utf8mb3_general_ci"
./console core:invalidate-report-data --dates=2024-01-01,today --plugin=Actions.Actions_hits
# These SQL queries will be executed:
ALTER TABLE `pw_log_conversion` ADD COLUMN `pageviews_before` SMALLINT UNSIGNED DEFAULT NULL;
Need help upgrading Matomo?
If you need support to upgrade your Matomo, the creators of Matomo are here to help you make the Matomo upgrade a success and provide all instructions, best practises and ongoing support. Contact the Matomo experts to get started upgrading your Matomo safely.
Ready to go?
The database upgrade process may take a while, so please be patient.
File integrity check failed and reported some errors. You should fix this issue and then refresh this page until it shows no error. |
Files were found in your Matomo, but we didn't expect them. --> Please delete these files to prevent errors. <-- File to delete: bower.json File to delete: composer.json File to delete: composer.lock File to delete: config/environment/test.php File to delete: config/environment/ui-test.php File to delete: js/piwik-min.js File to delete: js/piwik.js.orig File to delete: misc/gpl-3.0.txt File to delete: misc/internal-docs/content-tracking.md File to delete: misc/others/ExamplePiwikTracker.php File to delete: misc/others/api_internal_call.php File to delete: misc/others/api_rest_call.php File to delete: misc/others/download-count.txt File to delete: misc/others/iframeWidget_localhost.php File to delete: misc/others/stress.sh File to delete: misc/others/uninstall-delete-piwik-directory.php File to delete: misc/others/widget_example_lastvisits.html File to delete: package-lock.json To delete all these files at once, you can run this command: rm "/var/www/be.symzo.stats/piwik/bower.json" "/var/www/be.symzo.stats/piwik/composer.json" "/var/www/be.symzo.stats/piwik/composer.lock" "/var/www/be.symzo.stats/piwik/config/environment/test.php" "/var/www/be.symzo.stats/piwik/config/environment/ui-test.php" "/var/www/be.symzo.stats/piwik/js/piwik-min.js" "/var/www/be.symzo.stats/piwik/js/piwik.js.orig" "/var/www/be.symzo.stats/piwik/misc/gpl-3.0.txt" "/var/www/be.symzo.stats/piwik/misc/internal-docs/content-tracking.md" "/var/www/be.symzo.stats/piwik/misc/others/ExamplePiwikTracker.php" "/var/www/be.symzo.stats/piwik/misc/others/api_internal_call.php" "/var/www/be.symzo.stats/piwik/misc/others/api_rest_call.php" "/var/www/be.symzo.stats/piwik/misc/others/download-count.txt" "/var/www/be.symzo.stats/piwik/misc/others/iframeWidget_localhost.php" "/var/www/be.symzo.stats/piwik/misc/others/stress.sh" "/var/www/be.symzo.stats/piwik/misc/others/uninstall-delete-piwik-directory.php" "/var/www/be.symzo.stats/piwik/misc/others/widget_example_lastvisits.html" "/var/www/be.symzo.stats/piwik/package-lock.json" |