From dde725d06d767fb80c4c47288dfbafc57dde1dfa Mon Sep 17 00:00:00 2001 From: maxpozdeev Date: Mon, 5 Feb 2024 00:02:38 +0300 Subject: [PATCH] add Y38 notice --- src/setup.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/setup.php b/src/setup.php index 737f40a..254682b 100644 --- a/src/setup.php +++ b/src/setup.php @@ -266,6 +266,8 @@ function createMysqlTables(Database_Abstract $db) //$collation = hasMysqlUnicode520($db) ? 'utf8mb4_unicode_520_ci' : 'utf8mb4_unicode_ci'; $collation = 'utf8mb4_unicode_520_ci'; + //TODO: use BIGINT for time() timestamp to avoid the Year-2038 problem (2106 here) + // Mysql does not support transactions while executing DDL $db->ex( "CREATE TABLE {$db->prefix}lists ( @@ -346,6 +348,8 @@ function createMysqlTables(Database_Abstract $db) /* ===== postgres =============================================== */ function createPostgresTables(Database_Abstract $db) { + //TODO: use BIGINT for time() timestamp to avoid the Year-2038 problem + $db->ex( "CREATE TABLE {$db->prefix}lists ( id INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,