CRM_Upgrade_Incremental_php_FourFour
class CRM_Upgrade_Incremental_php_FourFour extends CRM_Upgrade_Incremental_Base
Upgrade logic for 4.4
Constants
BATCH_SIZE |
|
MAX_WORD_REPLACEMENT_SIZE |
|
Methods
Compute any messages which should be displayed beforeupgrade.
Compute any messages which should be displayed after upgrade.
Syntactic sugar for adding a task.
Remove a payment processor if not in use
No description
Add a column to a table if it doesn't already exist
Drop a column from a table if it exist.
Add a index to a table column.
Drop a index from a table if it exist.
Upgrade 4.4.alpha1.
No description
No description
No description
No description
Upgrade script for 4.4.7.
Upgrade image URLs.
Change saved search.
For WordPress/Joomla(?) sites which upgraded to 4.4.6, find back-end image_URLs (e.g. "http://example.com/wp-admin/admin.php?page=CiviCRM&q=civicrm/contact/imagefile&photo=123.jpg") and convert them to front-end URLs (e.g. "http://example.com/?page=CiviCRM&q=civicrm/contact/imagefile&photo=123.jpg").
No description
No description
Update activity contacts CRM-12274
Migrate word-replacements from $config to civicrm_word_replacement
Fix misconfigured constraints created in 4.4.0. To distinguish the good and bad configurations, we change the constraint name from "UI_find" (the original name in 4.4.0) to "UI_domain_find" (the new name in 4.4.1).
Get all the word-replacements stored in config-arrays and convert them to params for the WordReplacement.create API.
Get all the word-replacements stored in config-arrays and write them out as records in civicrm_word_replacement.
CRM-13998 missing alter statements for civicrm_report_instance
No description
Details
in CRM_Upgrade_Incremental_Base at line 41
bool
verifyPreDBstate($errors)
Verify DB state.
at line 45
setPreUpgradeMessage($preUpgradeMessage, string $rev, null $currentVer = NULL)
Compute any messages which should be displayed beforeupgrade.
Note: This function is called iteratively for each upcoming revision to the database.
at line 70
setPostUpgradeMessage(string $postUpgradeMessage, string $rev)
Compute any messages which should be displayed after upgrade.
in CRM_Upgrade_Incremental_Base at line 78
static bool
runSql( $ctx, string $rev)
(Queue Task Callback)
in CRM_Upgrade_Incremental_Base at line 96
protected
addTask(string $title, string $funcName)
Syntactic sugar for adding a task.
Task is (a) in this class and (b) has a high priority.
After passing the $funcName, you can also pass parameters that will go to the function. Note that all params must be serializable.
in CRM_Upgrade_Incremental_Base at line 121
static bool
removePaymentProcessorType( $ctx, string $name)
Remove a payment processor if not in use
in CRM_Upgrade_Incremental_Base at line 140
static bool
checkFKExists(string $table_name, string $constraint_name)
in CRM_Upgrade_Incremental_Base at line 153
static bool
addColumn(CRM_Queue_TaskContext $ctx, string $table, string $column, string $properties)
Add a column to a table if it doesn't already exist
in CRM_Upgrade_Incremental_Base at line 175
static bool
dropColumn(CRM_Queue_TaskContext $ctx, string $table, string $column)
Drop a column from a table if it exist.
in CRM_Upgrade_Incremental_Base at line 191
static bool
addIndex(CRM_Queue_TaskContext $ctx, string $table, string|array $column)
Add a index to a table column.
in CRM_Upgrade_Incremental_Base at line 206
static bool
dropIndex(CRM_Queue_TaskContext $ctx, string $table, string $indexName)
Drop a index from a table if it exist.
at line 106
bool
upgrade_4_4_alpha1(string $rev)
Upgrade 4.4.alpha1.
at line 119
upgrade_4_4_beta1($rev)
at line 148
upgrade_4_4_1($rev)
at line 259
bool
upgrade_4_4_4($rev)
at line 335
upgrade_4_4_6($rev)
at line 360
upgrade_4_4_7(string $rev, string $originalVer, string $latestVer)
Upgrade script for 4.4.7.
at line 385
static bool
upgradeImageUrls( $ctx, $startId, $endId)
Upgrade image URLs.
at line 425
static bool
changeSavedSearch( $ctx)
Change saved search.
at line 484
static bool
cleanupBackendImageUrls( $ctx, int $startId, int $endId)
For WordPress/Joomla(?) sites which upgraded to 4.4.6, find back-end image_URLs (e.g. "http://example.com/wp-admin/admin.php?page=CiviCRM&q=civicrm/contact/imagefile&photo=123.jpg") and convert them to front-end URLs (e.g. "http://example.com/?page=CiviCRM&q=civicrm/contact/imagefile&photo=123.jpg").
at line 505
static CRM_Core_DAO
findContactImageUrls(int $startId, int $endId)
at line 526
static
setContactImageUrl(int $cid, string $newImageUrl)
at line 543
static bool
activityContacts( $ctx)
Update activity contacts CRM-12274
at line 653
static bool
wordReplacements( $ctx)
Migrate word-replacements from $config to civicrm_word_replacement
at line 686
static bool
wordReplacements_patch( $ctx, $rev)
Fix misconfigured constraints created in 4.4.0. To distinguish the good and bad configurations, we change the constraint name from "UI_find" (the original name in 4.4.0) to "UI_domain_find" (the new name in 4.4.1).
at line 715
static array
getConfigArraysAsAPIParams(bool $rebuildEach)
Get all the word-replacements stored in config-arrays and convert them to params for the WordReplacement.create API.
Note: This function is duplicated in CRM_Core_BAO_WordReplacement and CRM_Upgrade_Incremental_php_FourFour to ensure that the incremental upgrade step behaves consistently even as the BAO evolves in future versions. However, if there's a bug in here prior to 4.4.0, we should apply the bugfix in both places.
at line 765
static
rebuildWordReplacementTable()
Get all the word-replacements stored in config-arrays and write them out as records in civicrm_word_replacement.
Note: This function is duplicated in CRM_Core_BAO_WordReplacement and CRM_Upgrade_Incremental_php_FourFour to ensure that the incremental upgrade step behaves consistently even as the BAO evolves in future versions. However, if there's a bug in here prior to 4.4.0, we should apply the bugfix in both places.
at line 777
updateReportInstanceTable()
CRM-13998 missing alter statements for civicrm_report_instance