Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
516
Issue boards
Milestones
Wiki
Code
Merge requests
83
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
vtiger
vtigercrm
Commits
2cb96db4
Commit
2cb96db4
authored
11 months ago
by
Prasad
Browse files
Options
Downloads
Patches
Plain Diff
Updated comment
parent
a70b77f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Migration/schema/811_to_812.php
+15
-15
15 additions, 15 deletions
modules/Migration/schema/811_to_812.php
with
15 additions
and
15 deletions
modules/Migration/schema/811_to_812.php
+
15
−
15
View file @
2cb96db4
...
...
@@ -11,21 +11,21 @@ if (defined('VTIGER_UPGRADE')) {
// Ensure related-tab for ModComments on Inventory modules (if missed in previous migration)
$modCommentsInstance
=
Vtiger_Module_Model
::
getInstance
(
'ModComments'
);
$modCommentFieldInstance
=
Vtiger_Field_Model
::
getInstance
(
'related_to'
,
$modCommentsInstance
);
foreach
(
getInventoryModules
()
as
$refModuleName
)
{
$refModuleModel
=
Vtiger_Module_Model
::
getInstance
(
$refModuleName
);
$rs
=
$db
->
pquery
(
"SELECT 1 FROM vtiger_relatedlists WHERE tabid=? and related_tabid=? and relationfieldid=? limit 1"
,
array
(
$refModuleModel
->
id
,
$modCommentsInstance
->
id
,
$modCommentFieldInstance
->
id
));
if
(
!
$db
->
num_rows
(
$rs
))
{
$refModuleModel
->
setRelatedList
(
$modCommentsInstance
,
"ModComments"
,
''
,
'get_comments'
,
$modCommentFieldInstance
->
id
);
}
}
$modCommentFieldInstance
=
Vtiger_Field_Model
::
getInstance
(
'related_to'
,
$modCommentsInstance
);
foreach
(
getInventoryModules
()
as
$refModuleName
)
{
$refModuleModel
=
Vtiger_Module_Model
::
getInstance
(
$refModuleName
);
$rs
=
$db
->
pquery
(
"SELECT 1 FROM vtiger_relatedlists WHERE tabid=? and related_tabid=? and relationfieldid=? limit 1"
,
array
(
$refModuleModel
->
id
,
$modCommentsInstance
->
id
,
$modCommentFieldInstance
->
id
));
if
(
!
$db
->
num_rows
(
$rs
))
{
$refModuleModel
->
setRelatedList
(
$modCommentsInstance
,
"ModComments"
,
''
,
'get_comments'
,
$modCommentFieldInstance
->
id
);
}
}
// Resize column width to text (instead of varchar)
$db
->
pquery
(
"ALTER TABLE vtiger_shorturls MODIFY COLUMN handler_data text"
);
// Resize column width to text (instead of varchar)
$db
->
pquery
(
"ALTER TABLE vtiger_shorturls MODIFY COLUMN handler_data text"
);
// Disabling the mass edit for the inventory line item fields.
$db
->
pquery
(
"UPDATE vtiger_field set masseditable = 0 where columnname in ('discount_percent','discount_amount')
and tablename in ('vtiger_quotes','vtiger_purchaseorder','vtiger_salesorder','vtiger_invoice')"
,
array
());
// Disabling the mass edit for the inventory line item
discount
fields.
$db
->
pquery
(
"UPDATE vtiger_field set masseditable = 0 where columnname in ('discount_percent','discount_amount')
and tablename in ('vtiger_quotes','vtiger_purchaseorder','vtiger_salesorder','vtiger_invoice')"
,
array
());
}
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