Drop indexes

This commit is contained in:
Alexandre Alapetite
2019-09-12 13:08:56 +02:00
parent 2b8b5937f2
commit f28d2bae09
2 changed files with 14 additions and 1 deletions

View File

@@ -106,4 +106,8 @@ define(
WHERE NOT EXISTS (SELECT id FROM "%1$sfeed" WHERE url = :url);'
);
define('SQL_DROP_TABLES', 'DROP TABLE IF EXISTS "%1$sentrytag", "%1$stag", "%1$sentrytmp", "%1$sentry", "%1$sfeed", "%1$scategory"');
global $SQL_DROP_TABLES;
$SQL_DROP_TABLES = [
'DROP TABLE IF EXISTS "%1$sentrytag", "%1$stag", "%1$sentrytmp", "%1$sentry", "%1$sfeed", "%1$scategory"',
'DROP INDEX IF EXISTS "%1$sentrytag_id_entry_index", "%1$sentry_feed_read_index", "%1$sentrytmp_date_index", "%1$sentry_lastSeen_index", "%1$sis_read_index", "%1$sis_favorite_index", "%1$skeep_history_index", "%1$spriority_index", "%1$sname_index"',
];

View File

@@ -113,4 +113,13 @@ $SQL_DROP_TABLES = [
'DROP TABLE IF EXISTS `entry`',
'DROP TABLE IF EXISTS `feed`',
'DROP TABLE IF EXISTS `category`',
'DROP INDEX IF EXISTS `entrytag_id_entry_index`',
'DROP INDEX IF EXISTS `entry_feed_read_index`',
'DROP INDEX IF EXISTS `entrytmp_date_index`',
'DROP INDEX IF EXISTS `entry_lastSeen_index`',
'DROP INDEX IF EXISTS `entry_is_read_index`',
'DROP INDEX IF EXISTS `entry_is_favorite_index`',
'DROP INDEX IF EXISTS `feed_keep_history_index`',
'DROP INDEX IF EXISTS `feed_priority_index`',
'DROP INDEX IF EXISTS `feed_name_index`',
];