function social_auth_update_8202 in Social Auth 8.2
Same name and namespace in other branches
- 3.x social_auth.install \social_auth_update_8202()
Update fields' properties.
The updating fields are uuid, created, changed, token, and additional_data.
File
- ./
social_auth.install, line 85 - Install, update and uninstall functions for Social Auth.
Code
function social_auth_update_8202() {
$schema = Database::getConnection()
->schema();
$specs = [
'uuid' => [
'type' => 'varchar_ascii',
'length' => 128,
'not null' => TRUE,
],
'created' => [
'type' => 'int',
'length' => 11,
'not null' => FALSE,
],
'changed' => [
'type' => 'int',
'length' => 11,
'not null' => FALSE,
],
'token' => [
'type' => 'text',
'not null' => FALSE,
'size' => 'big',
],
'additional_data' => [
'type' => 'text',
'not null' => FALSE,
'size' => 'big',
],
];
foreach ($specs as $field => $spec) {
$schema
->changeField('social_auth', $field, $field, $spec);
}
}