Skip to content

Commit f28d2ba

Browse files
committed
Drop indexes
1 parent 2b8b593 commit f28d2ba

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

app/SQL/install.sql.pgsql.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,8 @@
106106
WHERE NOT EXISTS (SELECT id FROM "%1$sfeed" WHERE url = :url);'
107107
);
108108

109-
define('SQL_DROP_TABLES', 'DROP TABLE IF EXISTS "%1$sentrytag", "%1$stag", "%1$sentrytmp", "%1$sentry", "%1$sfeed", "%1$scategory"');
109+
global $SQL_DROP_TABLES;
110+
$SQL_DROP_TABLES = [
111+
'DROP TABLE IF EXISTS "%1$sentrytag", "%1$stag", "%1$sentrytmp", "%1$sentry", "%1$sfeed", "%1$scategory"',
112+
'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"',
113+
];

app/SQL/install.sql.sqlite.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,13 @@
113113
'DROP TABLE IF EXISTS `entry`',
114114
'DROP TABLE IF EXISTS `feed`',
115115
'DROP TABLE IF EXISTS `category`',
116+
'DROP INDEX IF EXISTS `entrytag_id_entry_index`',
117+
'DROP INDEX IF EXISTS `entry_feed_read_index`',
118+
'DROP INDEX IF EXISTS `entrytmp_date_index`',
119+
'DROP INDEX IF EXISTS `entry_lastSeen_index`',
120+
'DROP INDEX IF EXISTS `entry_is_read_index`',
121+
'DROP INDEX IF EXISTS `entry_is_favorite_index`',
122+
'DROP INDEX IF EXISTS `feed_keep_history_index`',
123+
'DROP INDEX IF EXISTS `feed_priority_index`',
124+
'DROP INDEX IF EXISTS `feed_name_index`',
116125
];

0 commit comments

Comments
 (0)