mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-02-14 23:41:09 -05:00
* Change SQL update query for MariaDB / MySQL fix https://github.com/FreshRSS/FreshRSS/issues/5707 * No change for SQLite * Fix merge error * Update MySQL version on the model of PostgreSQL Performance to be tested * Fix LEFT JOIN, also for PostgreSQL / SQLite * Fix alias * Reduce MySQL deadlock * Fix compatibility with SQLite * Back to identical SQL for all databases
14 lines
295 B
PHP
14 lines
295 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
class FreshRSS_FeedDAOPGSQL extends FreshRSS_FeedDAO {
|
|
|
|
#[\Override]
|
|
public function sqlResetSequence(): bool {
|
|
$sql = <<<'SQL'
|
|
SELECT setval('`_feed_id_seq`', COALESCE(MAX(id), 0) + 1, false) FROM `_feed`
|
|
SQL;
|
|
return $this->pdo->exec($sql) !== false;
|
|
}
|
|
}
|