[OpenID][DATABASE] Store UNIX timestamps as BIGINT

This commit is contained in:
Alexei Sorokin 2020-07-31 18:40:53 +03:00
parent 1870f38099
commit 20be1d179a
1 changed files with 2 additions and 2 deletions

View File

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