mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
add Y38 notice
This commit is contained in:
parent
80de4b7a9b
commit
dde725d06d
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue