Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
field_collection
Commits
958c25cc
Commit
958c25cc
authored
Oct 20, 2019
by
bcoleman
Committed by
Ra Mänd
Oct 20, 2019
Browse files
Issue #3079042 by Ben Coleman: Pending Update #7009 Failed on MSSQL/PostgreSQL
parent
a8894ad5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
field_collection.install
field_collection.install
+1
-2
No files found.
field_collection.install
View file @
958c25cc
...
...
@@ -425,8 +425,7 @@ function field_collection_update_7009(&$sandbox) {
->
fields
(
't'
,
array
(
"
{
$sandbox
[
'field_name'
]
}
_revision_id"
))
->
range
(
$sandbox
[
'current_field_collection_item'
],
$items_per_pass
)
->
groupBy
(
"t.
{
$sandbox
[
'field_name'
]
}
_revision_id"
);
$query
->
addExpression
(
"COUNT(t.
{
$sandbox
[
'field_name'
]
}
_revision_id)"
,
'vidcount'
);
$query
->
havingCondition
(
'vidcount'
,
2
,
'>='
);
$query
->
having
(
"COUNT(t.
{
$sandbox
[
'field_name'
]
}
_revision_id) >= 2"
);
$vids
=
$query
->
execute
()
->
fetchCol
();
// Each revision ID that occurs more than once.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment