summaryrefslogtreecommitdiff
path: root/app/SQL/install.sql.sqlite.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-10-30 21:10:09 +0100
committerGravatar GitHub <noreply@github.com> 2023-10-30 21:10:09 +0100
commit21a279179a5e496082f4e43c5a2a5e10d90c0bdb (patch)
treee4cf86f096eba2b2f4b65d53203d06533979d5f4 /app/SQL/install.sql.sqlite.php
parentf72a5a43b3a85cc1b4596ed6eb447ac17395eca7 (diff)
Ready for year 2038 (#5570)
* Ready for year 2038 Fix https://github.com/FreshRSS/FreshRSS/discussions/5569 Requires PHP on a 64-bit platform to take advantage of it. https://en.wikipedia.org/wiki/Year_2038_problem * Allows dates past 2038 Rework of https://github.com/FreshRSS/FreshRSS/pull/3259 https://github.com/FreshRSS/FreshRSS/issues/3258 * Auto alter columns * Changelog
Diffstat (limited to 'app/SQL/install.sql.sqlite.php')
-rw-r--r--app/SQL/install.sql.sqlite.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/SQL/install.sql.sqlite.php b/app/SQL/install.sql.sqlite.php
index 1369bad25..2796b63e9 100644
--- a/app/SQL/install.sql.sqlite.php
+++ b/app/SQL/install.sql.sqlite.php
@@ -22,7 +22,7 @@ CREATE TABLE IF NOT EXISTS `feed` (
`name` VARCHAR(191) NOT NULL,
`website` VARCHAR(32768),
`description` TEXT,
- `lastUpdate` INT(11) DEFAULT 0, -- Until year 2038
+ `lastUpdate` BIGINT DEFAULT 0,
`priority` TINYINT(2) NOT NULL DEFAULT 10,
`pathEntries` VARCHAR(65535) DEFAULT NULL,
`httpAuth` VARCHAR(1024) DEFAULT NULL,
@@ -43,8 +43,8 @@ CREATE TABLE IF NOT EXISTS `entry` (
`author` VARCHAR(65535),
`content` TEXT,
`link` VARCHAR(32768) NOT NULL,
- `date` INT(11), -- Until year 2038
- `lastSeen` INT(11) DEFAULT 0, -- v1.1.1, Until year 2038
+ `date` BIGINT,
+ `lastSeen` BIGINT DEFAULT 0,
`hash` BINARY(16), -- v1.1.1
`is_read` BOOLEAN NOT NULL DEFAULT 0,
`is_favorite` BOOLEAN NOT NULL DEFAULT 0,
@@ -69,8 +69,8 @@ CREATE TABLE IF NOT EXISTS `entrytmp` ( -- v1.7
`author` VARCHAR(65535),
`content` TEXT,
`link` VARCHAR(32768) NOT NULL,
- `date` INT(11),
- `lastSeen` INT(11) DEFAULT 0,
+ `date` BIGINT,
+ `lastSeen` BIGINT DEFAULT 0,
`hash` BINARY(16),
`is_read` BOOLEAN NOT NULL DEFAULT 0,
`is_favorite` BOOLEAN NOT NULL DEFAULT 0,