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,