mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-02-25 11:06:22 -05: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:
committed by
GitHub
parent
f5aba79d14
commit
f050a94b48
@@ -62,13 +62,7 @@ INSERT INTO `_category` (id, name)
|
||||
SELECT 1, 'Uncategorized'
|
||||
WHERE NOT EXISTS (SELECT id FROM `_category` WHERE id = 1)
|
||||
RETURNING nextval('`_category_id_seq`');
|
||||
SQL;
|
||||
|
||||
$GLOBALS['SQL_CREATE_INDEX_ENTRY_1'] = <<<'SQL'
|
||||
CREATE INDEX IF NOT EXISTS `_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 PRIMARY KEY,
|
||||
"guid" VARCHAR(760) NOT NULL,
|
||||
@@ -88,9 +82,7 @@ CREATE TABLE IF NOT EXISTS `_entrytmp` ( -- v1.7
|
||||
UNIQUE ("id_feed","guid")
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS `_entrytmp_date_index` ON `_entrytmp` ("date");
|
||||
SQL;
|
||||
|
||||
$GLOBALS['SQL_CREATE_TABLE_TAGS'] = <<<'SQL'
|
||||
CREATE TABLE IF NOT EXISTS `_tag` ( -- v1.12
|
||||
"id" SERIAL PRIMARY KEY,
|
||||
"name" VARCHAR(63) UNIQUE NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user