CRM_Upgrade_Incremental_php_FourThree
class CRM_Upgrade_Incremental_php_FourThree extends CRM_Upgrade_Incremental_Base
Upgrade logic for 4.3
Constants
BATCH_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
Do any relevant message template updates.
Re-save any valid values from contribute settings into the normal setting format.
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.
Rebuild Multilingual Schema.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
CRM-11636
No description
No description
No description
No description
Read creation and modification times from civicrm_log; add them to civicrm_contact.
Change index and add missing constraints for civicrm_contribution_recur.
Update financial_account_id for bad data in financial_trxn table.
Update financial_account_id for bad data in financial_trxn table.
Replace contribution_type to financial_type in table.
Add ON DELETE options for constraint if not present.
Details
in CRM_Upgrade_Incremental_Base at line 41
bool
verifyPreDBstate($errors)
Verify DB state.
at line 46
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 114
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(CRM_Queue_TaskContext $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(CRM_Queue_TaskContext $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 156
static bool
addColumn(CRM_Queue_TaskContext $ctx, string $table, string $column, string $properties, bool $localizable = FALSE, string|null $version = NULL)
Add a column to a table if it doesn't already exist
in CRM_Upgrade_Incremental_Base at line 194
static
updateMessageTemplates(CRM_Queue_TaskContext $ctx, string $version)
Do any relevant message template updates.
in CRM_Upgrade_Incremental_Base at line 213
static bool
updateContributeSettings($ctx)
Re-save any valid values from contribute settings into the normal setting format.
We render the array of contribution_invoice_settings and any that have metadata defined we add to the correct key. This is safe to run even if no settings are to be converted, per the test in testConvertUpgradeContributeSettings.
in CRM_Upgrade_Incremental_Base at line 231
bool
updateSmartGroups(CRM_Queue_TaskContext $ctx, array $actions)
Do any relevant smart group updates.
in CRM_Upgrade_Incremental_Base at line 245
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 261
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 276
static bool
dropIndex(CRM_Queue_TaskContext $ctx, string $table, string $indexName)
Drop a index from a table if it exist.
in CRM_Upgrade_Incremental_Base at line 289
static bool
dropTableIfEmpty(CRM_Queue_TaskContext $ctx, string $table)
Drop a table.
.. but only if it's empty.
in CRM_Upgrade_Incremental_Base at line 309
static bool
rebuildMultilingalSchema(CRM_Queue_TaskContext $ctx, string|null $version = NULL)
Rebuild Multilingual Schema.
at line 241
bool
upgrade_4_3_alpha1($rev)
at line 279
upgrade_4_3_alpha2($rev)
at line 291
upgrade_4_3_alpha3($rev)
at line 298
upgrade_4_3_beta2($rev)
at line 313
upgrade_4_3_beta3($rev)
at line 325
upgrade_4_3_beta4($rev)
at line 335
upgrade_4_3_beta5($rev)
at line 362
upgrade_4_3_4($rev)
at line 369
upgrade_4_3_5($rev)
at line 397
upgrade_4_3_6($rev)
at line 413
bool
assignFinancialTypeToPriceRecords()
CRM-11636
at line 457
static bool
_checkAndMigrateDefaultFinancialTypes()
at line 489
bool
createFinancialRecords()
at line 832
array
createDomainContacts()
at line 879
task_4_3_alpha1_checkDBConstraints()
at line 949
bool
convertTimestamps(CRM_Queue_TaskContext $ctx, int $startId, int $endId)
Read creation and modification times from civicrm_log; add them to civicrm_contact.
at line 984
bool
addMissingConstraints(CRM_Queue_TaskContext $ctx)
Change index and add missing constraints for civicrm_contribution_recur.
at line 1019
bool
updateFinancialTrxnData(CRM_Queue_TaskContext $ctx)
Update financial_account_id for bad data in financial_trxn table.
CRM-12844
at line 1085
bool
updateLineItemData(CRM_Queue_TaskContext $ctx)
Update financial_account_id for bad data in financial_trxn table.
CRM-12844
at line 1156
bool
replaceContributionTypeId(CRM_Queue_TaskContext $ctx, string $query, string $table)
Replace contribution_type to financial_type in table.
Civicrm_saved_search and Structure civicrm_report_instance
at line 1237
bool
task_4_3_x_checkConstraints(CRM_Queue_TaskContext $ctx)
Add ON DELETE options for constraint if not present.
CRM-13088 && CRM-12156
at line 1298
bool
task_4_3_x_checkIndexes(CRM_Queue_TaskContext $ctx)
Check/Add INDEX CRM-12141
at line 1324
static bool
phoneNumeric(CRM_Queue_TaskContext $ctx)
Update phones CRM-11292