Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simple_oauth
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
simple_oauth
Commits
1ba4ae8a
Commit
1ba4ae8a
authored
3 months ago
by
Bojan Bogdanovic
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3503108
: Resolve mismatched field definition for oauth2_token
parent
258261fd
No related branches found
No related tags found
1 merge request
!169
Issue #3503108: Resolve mismatched field definition for oauth2_token
Pipeline
#409465
passed with warnings
3 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
simple_oauth.install
+4
-2
4 additions, 2 deletions
simple_oauth.install
with
4 additions
and
2 deletions
simple_oauth.install
+
4
−
2
View file @
1ba4ae8a
...
...
@@ -141,8 +141,10 @@ function simple_oauth_update_8502() {
*/
function
simple_oauth_update_8503
()
{
$definition_update_manager
=
\Drupal
::
entityDefinitionUpdateManager
();
$field_storage_definition
=
$definition_update_manager
->
getFieldStorageDefinition
(
'value'
,
'oauth2_token'
);
$definition_update_manager
->
updateFieldStorageDefinition
(
$field_storage_definition
);
foreach
([
'value'
,
'scopes'
]
as
$field_name
)
{
$field_storage_definition
=
$definition_update_manager
->
getFieldStorageDefinition
(
$field_name
,
'oauth2_token'
);
$definition_update_manager
->
updateFieldStorageDefinition
(
$field_storage_definition
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment