Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
933
Issues
933
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Development
Core
Commits
96335902
Unverified
Commit
96335902
authored
May 03, 2019
by
Seamus Lee
Committed by
GitHub
May 03, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14187 from seamuslee001/dev_core_931
Resolve
#931
by not doing translation on the query if field e…
parents
35f9da7b
e00be4f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CRM/Upgrade/Incremental/Base.php
CRM/Upgrade/Incremental/Base.php
+2
-2
No files found.
CRM/Upgrade/Incremental/Base.php
View file @
96335902
...
...
@@ -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
"
;
}
}
...
...
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