aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-08-08 22:56:32 +0200
committerGravatar GitHub <noreply@github.com> 2024-08-08 22:56:32 +0200
commite08574a47d33c74eccc0675248a8d83ca205fed2 (patch)
tree117f302621bc696a6909a0cc90cb82bc83747bfc /app
parentb034ce2ccbc3363127d96fdc3ede298374f2c5bc (diff)
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
Diffstat (limited to 'app')
-rw-r--r--app/SQL/install.sql.mysql.php2
-rw-r--r--app/SQL/install.sql.sqlite.php2
2 files changed, 2 insertions, 2 deletions
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,