*
*/
class CRM_Upgrade_TwoTwo_Form_Step2 extends CRM_Upgrade_Form {
+ /**
+ * @param $errorMessage
+ *
+ * @return bool
+ */
function verifyPreDBState(&$errorMessage) {
$errorMessage = ts('Pre-condition failed for upgrade step %1.', array(1 => '2'));
$this->setVersion('2.1.102');
}
+ /**
+ * @param $errorMessage
+ *
+ * @return bool
+ */
function verifyPostDBState(&$errorMessage) {
// check if civicrm_event_page tables droped
if (CRM_Core_DAO::checkTableExists('civicrm_event_page')) {
return $this->checkVersion('2.1.102');
}
+ /**
+ * @return string
+ */
function getTitle() {
return ts('CiviCRM 2.2 Upgrade: Step Two (Merge CiviEvent Tables)');
}
+ /**
+ * @return string
+ */
function getTemplateMessage() {
return '<p>' . ts('Step Two will merge the table EventPage into Event table in your database.') . '</p>';
}
+ /**
+ * @return string
+ */
function getButtonTitle() {
return ts('Upgrade & Continue');
}