[OpenID][DATABASE] Store UNIX timestamps as BIGINT

This commit is contained in:
Alexei Sorokin 2020-07-31 18:40:53 +03:00 committed by Diogo Peralta Cordeiro
parent 573cd7d450
commit d55488cdec

View File

@ -504,7 +504,7 @@ class OpenIDPlugin extends Plugin
'server_url' => array('type' => 'blob', 'not null' => true), 'server_url' => array('type' => 'blob', 'not null' => true),
'handle' => array('type' => 'varchar', 'length' => 191, 'not null' => true, 'default' => ''), // character set latin1, 'handle' => array('type' => 'varchar', 'length' => 191, 'not null' => true, 'default' => ''), // character set latin1,
'secret' => array('type' => 'blob'), 'secret' => array('type' => 'blob'),
'issued' => array('type' => 'int'), 'issued' => array('type' => 'int', 'size' => 'big'),
'lifetime' => array('type' => 'int'), 'lifetime' => array('type' => 'int'),
'assoc_type' => array('type' => 'varchar', 'length' => 64), 'assoc_type' => array('type' => 'varchar', 'length' => 64),
), ),
@ -514,7 +514,7 @@ class OpenIDPlugin extends Plugin
array( array(
'fields' => array( 'fields' => array(
'server_url' => array('type' => 'varchar', 'length' => 2047), 'server_url' => array('type' => 'varchar', 'length' => 2047),
'timestamp' => array('type' => 'int'), 'timestamp' => array('type' => 'int', 'size' => 'big'),
'salt' => array('type' => 'char', 'length' => 40), 'salt' => array('type' => 'char', 'length' => 40),
), ),
'unique keys' => array( 'unique keys' => array(