CRM_Upgrade_Incremental_php_FourSix
class CRM_Upgrade_Incremental_php_FourSix extends CRM_Upgrade_Incremental_Base
Upgrade logic for 4.6
Constants
BATCH_SIZE |
|
Methods
Compute any messages which should be displayed before upgrade.
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.
CRM-16846 - This function incorrectly omits running the 4.6.alpha3 sql file.
Add new column reference_date to civicrm_action_log in order to track.
Upgrade function.
Upgrade function.
Remove special characters from case_type_id column in log_civicrm_case.
Details
in CRM_Upgrade_Incremental_Base at line 41
bool
verifyPreDBstate($errors)
Verify DB state.
in CRM_Upgrade_Incremental_Base at line 56
setPreUpgradeMessage($preUpgradeMessage, string $rev, null $currentVer = NULL)
Compute any messages which should be displayed before upgrade.
Note: This function is called iteratively for each upcoming revision to the database.
at line 41
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 59
upgrade_4_6_alpha3(string $rev)
CRM-16846 - This function incorrectly omits running the 4.6.alpha3 sql file.
Instead of correcting it here (which would not run again for sites already on 4.6), the file is re-run conditionally during 4.6.6
at line 73
static bool
updateReferenceDate(CRM_Queue_TaskContext $ctx)
Add new column reference_date to civicrm_action_log in order to track.
CRM-15728, actual action_start_date for membership entity for only those schedule reminders which are not repeatable
at line 131
upgrade_4_6_1(string $rev)
Upgrade function.
at line 141
upgrade_4_6_6(string $rev)
Upgrade function.
at line 162
static bool
fixCaseLog(CRM_Queue_TaskContext $ctx)
Remove special characters from case_type_id column in log_civicrm_case.
CRM-16289 - If logging enabled and upgrading from 4.4 or earlier, log_civicrm_case.case_type_id will contain special characters. This will cause ALTER TABLE to fail when changing this column to an INT
at line 190
static bool
task_4_6_x_runOnlySql(CRM_Queue_TaskContext $ctx, string $rev)
Queue Task Callback for CRM-16846
Run a sql file without resetting locale to that version