db)) { exit; } */ class vB_Upgrade_417b1 extends vB_Upgrade_Version { /*Constants=====================================================================*/ /*Properties====================================================================*/ /** * The short version of the script * * @var string */ public $SHORT_VERSION = '417b1'; /** * The long version of the script * * @var string */ public $LONG_VERSION = '4.1.7 Beta 1'; /** * Versions that can upgrade to this script * * @var string */ public $PREV_VERSION = '4.1.6'; /** * Beginning version compatibility * * @var string */ public $VERSION_COMPAT_STARTS = ''; /** * Ending version compatibility * * @var string */ public $VERSION_COMPAT_ENDS = ''; /* Step 1 - VBIV-698 : Drop old vb3 fulltext index if it exists. */ function step_1() { $this->drop_index( sprintf($this->phrase['core']['altering_x_table'], 'thread', 1, 1), 'thread', 'title' ); } /* Steps 2 & 3 - VBIV-10514 : Add last_activity index. */ function step_2() { $this->run_query( sprintf($this->phrase['core']['altering_x_table'], 'session', 1, 4), 'ALTER TABLE ' . TABLE_PREFIX . 'session DROP INDEX last_activity', '1091' ); } function step_3() { $this->run_query( sprintf($this->phrase['core']['altering_x_table'], 'session', 2, 4), 'ALTER TABLE ' . TABLE_PREFIX . 's