From d55488cdecf46e203757e31e3f776788ab9964fd Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Fri, 31 Jul 2020 18:40:53 +0300 Subject: [PATCH] [OpenID][DATABASE] Store UNIX timestamps as BIGINT --- plugins/OpenID/OpenIDPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php index dd012bb979..59a047889f 100644 --- a/plugins/OpenID/OpenIDPlugin.php +++ b/plugins/OpenID/OpenIDPlugin.php @@ -504,7 +504,7 @@ class OpenIDPlugin extends Plugin 'server_url' => array('type' => 'blob', 'not null' => true), 'handle' => array('type' => 'varchar', 'length' => 191, 'not null' => true, 'default' => ''), // character set latin1, 'secret' => array('type' => 'blob'), - 'issued' => array('type' => 'int'), + 'issued' => array('type' => 'int', 'size' => 'big'), 'lifetime' => array('type' => 'int'), 'assoc_type' => array('type' => 'varchar', 'length' => 64), ), @@ -514,7 +514,7 @@ class OpenIDPlugin extends Plugin array( 'fields' => array( 'server_url' => array('type' => 'varchar', 'length' => 2047), - 'timestamp' => array('type' => 'int'), + 'timestamp' => array('type' => 'int', 'size' => 'big'), 'salt' => array('type' => 'char', 'length' => 40), ), 'unique keys' => array(