[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
parent b419c5cf7c
commit 0e81f9c726

View File

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