Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
e24b1b0c
Unverified
Commit
e24b1b0c
authored
5 years ago
by
Seamus Lee
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #14188 from seamuslee001/dev_core_931_5_14
Resolve
#931
by not doing translation on the query if field e…
parents
06c6fed9
ce33da5a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Upgrade/Incremental/Base.php
+2
-2
2 additions, 2 deletions
CRM/Upgrade/Incremental/Base.php
with
2 additions
and
2 deletions
CRM/Upgrade/Incremental/Base.php
+
2
−
2
View file @
e24b1b0c
...
...
@@ -156,12 +156,12 @@ class CRM_Upgrade_Incremental_Base {
$domain
=
new
CRM_Core_DAO_Domain
();
$domain
->
find
(
TRUE
);
$queries
=
[];
if
(
!
CRM_Core_BAO_SchemaHandler
::
checkIfFieldExists
(
$table
,
$column
))
{
if
(
!
CRM_Core_BAO_SchemaHandler
::
checkIfFieldExists
(
$table
,
$column
,
FALSE
))
{
if
(
$domain
->
locales
)
{
if
(
$localizable
)
{
$locales
=
explode
(
CRM_Core_DAO
::
VALUE_SEPARATOR
,
$domain
->
locales
);
foreach
(
$locales
as
$locale
)
{
if
(
!
CRM_Core_BAO_SchemaHandler
::
checkIfFieldExists
(
$table
,
"
{
$column
}
_
{
$locale
}
"
))
{
if
(
!
CRM_Core_BAO_SchemaHandler
::
checkIfFieldExists
(
$table
,
"
{
$column
}
_
{
$locale
}
"
,
FALSE
))
{
$queries
[]
=
"ALTER TABLE `
$table
` ADD COLUMN `
{
$column
}
_
{
$locale
}
`
$properties
"
;
}
}
...
...
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