add Y38 notice

This commit is contained in:
maxpozdeev 2024-02-05 00:02:38 +03:00
parent 80de4b7a9b
commit dde725d06d

View file

@ -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,