CRM_Upgrade_Incremental_php_FourTwo
class CRM_Upgrade_Incremental_php_FourTwo extends CRM_Upgrade_Incremental_Base
Upgrade logic for 4.2
Constants
BATCH_SIZE |
|
SETTINGS_SNIPPET_PATTERN |
|
SETTINGS_SNIPPET |
|
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.
No description
No description
No description
No description
No description
No description
No description
No description
No description
(Queue Task Callback)
Create price sets.
(Queue Task Callback)
(Queue Task Callback)
(Queue Task Callback)
No description
Details
in CRM_Upgrade_Incremental_Base at line 41
bool
verifyPreDBstate($errors)
Verify DB state.
at line 48
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 143
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 160
upgrade_4_2_alpha1($rev)
at line 208
upgrade_4_2_beta2($rev)
at line 222
upgrade_4_2_beta3($rev)
at line 237
upgrade_4_2_beta5($rev)
at line 249
upgrade_4_2_0($rev)
at line 256
upgrade_4_2_2($rev)
at line 296
upgrade_4_2_3($rev)
at line 338
upgrade_4_2_5($rev)
at line 358
convertContribution()
at line 386
static bool
task_4_2_alpha1_createPriceSets( $ctx, string $rev)
(Queue Task Callback)
Upgrade code to create priceset for contribution pages and events
at line 442
static
createPriceSet(string $daoName, string $addTo, array $options = array())
Create price sets.
at line 586
static bool
task_4_2_alpha1_convertContributions( $ctx, int $startId, int $endId)
(Queue Task Callback)
Find any contribution records and create corresponding line-item records.
at line 737
static bool
task_4_2_alpha1_convertParticipants( $ctx, int $startId, int $endId)
(Queue Task Callback)
Find any participant records and create corresponding line-item records.
at line 797
static bool
task_4_2_alpha1_eventProfile( $ctx)
(Queue Task Callback)
Create an event registration profile with a single email field CRM-9587