[OpenID] Correct table definition types

"server_url" should not be blob.
Lengths are adjusted to Auth/OpenID/(PostgreSQL|MySQL)Store.php.
This commit is contained in:
Alexei Sorokin 2020-08-24 16:27:44 +03:00 committed by Diogo Peralta Cordeiro
parent 3b514abd6b
commit 912a0cb16c
1 changed files with 3 additions and 3 deletions

View File

@ -501,14 +501,14 @@ class OpenIDPlugin extends Plugin
$schema->ensureTable('oid_associations',
array(
'fields' => array(
'server_url' => array('type' => 'blob', 'not null' => true),
'handle' => array('type' => 'varchar', 'length' => 191, 'not null' => true, 'default' => ''), // character set latin1,
'server_url' => array('type' => 'varchar', 'length' => 2047, 'not null' => true),
'handle' => array('type' => 'varchar', 'length' => 255, 'not null' => true, 'default' => ''),
'secret' => array('type' => 'blob'),
'issued' => array('type' => 'int', 'size' => 'big'),
'lifetime' => array('type' => 'int'),
'assoc_type' => array('type' => 'varchar', 'length' => 64),
),
'primary key' => array(array('server_url', 191), 'handle'),
'primary key' => array(array('server_url', 191), array('handle', 191)),
));
$schema->ensureTable('oid_nonces',
array(