mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 02:11:52 -04:00
SQL: clean old auto-updates (#5649)
Should help with some DB lock issues. Complete https://github.com/FreshRSS/FreshRSS/pull/3558 after https://github.com/FreshRSS/FreshRSS/pull/5625 already cherry-picked from it. * Removed auto-update of MySQL GUID case sensitivity https://github.com/FreshRSS/FreshRSS/pull/2078 * Contributed to a DB lock in https://github.com/FreshRSS/FreshRSS/issues/5008 Also removed the following non-problematic auto-updates, simply because they were older than the above ones * Auto-create custom labels (1.12.0) https://github.com/FreshRSS/FreshRSS/pull/2027 * Auto-add JSON column for feeds (1.11.0) https://github.com/FreshRSS/FreshRSS/pull/1838 * Auto-create temporary tables (1.7.0) https://github.com/FreshRSS/FreshRSS/pull/1470
This commit is contained in:
1 parent
f5aba79d14
commit
f050a94b48
11 files changed
+2
-159
No files matched your search
@@ -66,13 +66,7 @@ CREATE TABLE IF NOT EXISTS `_entry` (
|
||||
ENGINE = INNODB;
|
||||
|
||||
INSERT IGNORE INTO `_category` (id, name) VALUES(1, "Uncategorized");
|
||||
SQL;
|
||||
|
||||
$GLOBALS['SQL_CREATE_INDEX_ENTRY_1'] = <<<'SQL'
|
||||
CREATE INDEX `entry_feed_read_index` ON `_entry` (`id_feed`,`is_read`); -- v1.7
|
||||
SQL;
|
||||
|
||||
$GLOBALS['SQL_CREATE_TABLE_ENTRYTMP'] = <<<'SQL'
|
||||
CREATE TABLE IF NOT EXISTS `_entrytmp` ( -- v1.7
|
||||
`id` BIGINT NOT NULL,
|
||||
`guid` VARCHAR(760) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
|
||||
@@ -94,9 +88,7 @@ CREATE TABLE IF NOT EXISTS `_entrytmp` ( -- v1.7
|
||||
INDEX (`date`)
|
||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
|
||||
ENGINE = INNODB;
|
||||
SQL;
|
||||
|
||||
$GLOBALS['SQL_CREATE_TABLE_TAGS'] = <<<'SQL'
|
||||
CREATE TABLE IF NOT EXISTS `_tag` ( -- v1.12
|
||||
`id` INT NOT NULL AUTO_INCREMENT,
|
||||
`name` VARCHAR(63) NOT NULL,
|
||||
@@ -120,8 +112,3 @@ SQL;
|
||||
$GLOBALS['SQL_DROP_TABLES'] = <<<'SQL'
|
||||
DROP TABLE IF EXISTS `_entrytag`, `_tag`, `_entrytmp`, `_entry`, `_feed`, `_category`;
|
||||
SQL;
|
||||
|
||||
$GLOBALS['SQL_UPDATE_GUID_LATIN1_BIN'] = <<<'SQL'
|
||||
ALTER TABLE `_entrytmp` MODIFY `guid` VARCHAR(760) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL; -- v1.12
|
||||
ALTER TABLE `_entry` MODIFY `guid` VARCHAR(760) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL;
|
||||
SQL;
|
||||
Reference in new issue
Block a user