forked from GNUsocial/gnu-social
Some loose table definitions which needed 191 char indexes
because we want utf8mb4 so badly!
This commit is contained in:
parent
0590f2975e
commit
d061e1065e
@ -547,13 +547,13 @@ class OpenIDPlugin extends Plugin
|
|||||||
array(
|
array(
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'server_url' => array('type' => 'blob', 'not null' => true),
|
'server_url' => array('type' => 'blob', 'not null' => true),
|
||||||
'handle' => array('type' => 'varchar', 'length' => 255, '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'),
|
||||||
'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', 255), 'handle'),
|
'primary key' => array(array('server_url', 191), 'handle'),
|
||||||
));
|
));
|
||||||
$schema->ensureTable('oid_nonces',
|
$schema->ensureTable('oid_nonces',
|
||||||
array(
|
array(
|
||||||
@ -563,7 +563,7 @@ class OpenIDPlugin extends Plugin
|
|||||||
'salt' => array('type' => 'char', 'length' => 40),
|
'salt' => array('type' => 'char', 'length' => 40),
|
||||||
),
|
),
|
||||||
'unique keys' => array(
|
'unique keys' => array(
|
||||||
'oid_nonces_server_url_timestamp_salt_key' => array(array('server_url', 255), 'timestamp', 'salt'),
|
'oid_nonces_server_url_timestamp_salt_key' => array(array('server_url', 191), 'timestamp', 'salt'),
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user