From e08574a47d33c74eccc0675248a8d83ca205fed2 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 8 Aug 2024 22:56:32 +0200 Subject: SQL single quote string literals (#6701) https://www.sqlite.org/quirks.html#double_quoted_string_literals_are_accepted fix https://github.com/FreshRSS/FreshRSS/issues/6602 And MySQL at the same time https://dev.mysql.com/doc/refman/9.0/en/string-literals.html --- app/SQL/install.sql.mysql.php | 2 +- app/SQL/install.sql.sqlite.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/SQL/install.sql.mysql.php b/app/SQL/install.sql.mysql.php index 6c766d5c7..40553608a 100644 --- a/app/SQL/install.sql.mysql.php +++ b/app/SQL/install.sql.mysql.php @@ -65,7 +65,7 @@ CREATE TABLE IF NOT EXISTS `_entry` ( ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = INNODB; -INSERT IGNORE INTO `_category` (id, name) VALUES(1, "Uncategorized"); +INSERT IGNORE INTO `_category` (id, name) VALUES(1, 'Uncategorized'); CREATE TABLE IF NOT EXISTS `_entrytmp` ( -- v1.7 `id` BIGINT NOT NULL, diff --git a/app/SQL/install.sql.sqlite.php b/app/SQL/install.sql.sqlite.php index e0c8b506e..1deb627d3 100644 --- a/app/SQL/install.sql.sqlite.php +++ b/app/SQL/install.sql.sqlite.php @@ -60,7 +60,7 @@ CREATE INDEX IF NOT EXISTS entry_is_read_index ON `entry`(`is_read`); CREATE INDEX IF NOT EXISTS entry_lastSeen_index ON `entry`(`lastSeen`); -- //v1.1.1 CREATE INDEX IF NOT EXISTS entry_feed_read_index ON `entry`(`id_feed`,`is_read`); -- v1.7 -INSERT OR IGNORE INTO `category` (id, name) VALUES(1, "Uncategorized"); +INSERT OR IGNORE INTO `category` (id, name) VALUES(1, 'Uncategorized'); CREATE TABLE IF NOT EXISTS `entrytmp` ( -- v1.7 `id` BIGINT NOT NULL, -- cgit v1.2.3