diff options
| author | 2023-09-12 10:43:14 +0200 | |
|---|---|---|
| committer | 2023-09-12 10:43:14 +0200 | |
| commit | f050a94b48499286abfb4b69f3bcb3dee5f9ea2d (patch) | |
| tree | 1614483dd53294500825d036a52d4d4a5170bb23 /app/Models/DatabaseDAO.php | |
| parent | f5aba79d147532990cbf321e311e06e3f7bea0d1 (diff) | |
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
Diffstat (limited to 'app/Models/DatabaseDAO.php')
| -rw-r--r-- | app/Models/DatabaseDAO.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/app/Models/DatabaseDAO.php b/app/Models/DatabaseDAO.php index ea12bab8e..416c1fb65 100644 --- a/app/Models/DatabaseDAO.php +++ b/app/Models/DatabaseDAO.php @@ -204,27 +204,9 @@ SQL; return $ok; } - public function ensureCaseInsensitiveGuids(): bool { - $ok = true; - if ($this->pdo->dbType() === 'mysql') { - include(APP_PATH . '/SQL/install.sql.mysql.php'); - - $ok = false; - try { - $ok = $this->pdo->exec($GLOBALS['SQL_UPDATE_GUID_LATIN1_BIN']) !== false; //FreshRSS 1.12 - } catch (Exception $e) { - $ok = false; - Minz_Log::error(__METHOD__ . ' error: ' . $e->getMessage()); - } - } - return $ok; - } - public function minorDbMaintenance(): void { $catDAO = FreshRSS_Factory::createCategoryDao(); $catDAO->resetDefaultCategoryName(); - - $this->ensureCaseInsensitiveGuids(); } private static function stdError(string $error): bool { |
