Version 4.2.0
This commit is contained in:
1 parent
0dc2aee5ed
commit
96997ddd8e
2074 files changed
+125454
-55780
No files matched your search
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief Upgrade steps
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Community Suite
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
* @since 5 Jun 2014
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
|
||||
namespace IPS\core\setup\upg_34000;
|
||||
@@ -30,7 +29,7 @@ class _Upgrade
|
||||
*/
|
||||
public function step1()
|
||||
{
|
||||
\IPS\Db::i()->dropTable( 'converge_local' );
|
||||
\IPS\Db::i()->dropTable( 'converge_local', TRUE );
|
||||
|
||||
\IPS\Db::i()->delete( 'core_sys_conf_settings', "conf_key IN( 'ipconverge_enabled', 'ipconverge_url', 'ipconverge_pid' )" );
|
||||
\IPS\Db::i()->delete( 'core_sys_settings_titles', "conf_title_keyword='ipconverge'" );
|
||||
@@ -134,8 +133,12 @@ class _Upgrade
|
||||
\IPS\Db::i()->delete( 'core_uagents', "uagent_key='mob_saf'" );
|
||||
\IPS\Db::i()->delete( 'bbcode_mediatag', "mediatag_name='GameTrailers'" );
|
||||
|
||||
\IPS\Db::i()->dropColumn( 'forums', 'rules_raw_html' );
|
||||
\IPS\Db::i()->dropTable( 'core_share_links_caches' );
|
||||
if( \IPS\Db::i()->checkForColumn( 'forums', 'rules_raw_html' ) )
|
||||
{
|
||||
\IPS\Db::i()->dropColumn( 'forums', 'rules_raw_html' );
|
||||
}
|
||||
|
||||
\IPS\Db::i()->dropTable( 'core_share_links_caches', TRUE );
|
||||
|
||||
if( !\IPS\Db::i()->checkForTable( 'backup_vars' ) )
|
||||
{
|
||||
@@ -356,6 +359,16 @@ class _Upgrade
|
||||
) );
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Step 2
|
||||
*
|
||||
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
|
||||
*/
|
||||
public function step2()
|
||||
{
|
||||
$toRun = \IPS\core\Setup\Upgrade::runManualQueries( array( array(
|
||||
'table' => 'members',
|
||||
'query' => "ALTER TABLE " . \IPS\Db::i()->prefix . "members ADD COLUMN ipsconnect_id INT(10) NOT NULL DEFAULT 0;"
|
||||
@@ -367,7 +380,7 @@ class _Upgrade
|
||||
|
||||
if ( count( $toRun ) )
|
||||
{
|
||||
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'core', 'extra' => array( '_upgradeStep' => 2 ) ) );
|
||||
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'core', 'extra' => array( '_upgradeStep' => 3 ) ) );
|
||||
|
||||
/* Queries to run manually */
|
||||
return array( 'html' => \IPS\Theme::i()->getTemplate( 'forms' )->queries( $toRun, \IPS\Http\Url::internal( 'controller=upgrade' )->setQueryString( array( 'key' => $_SESSION['uniqueKey'], 'mr_continue' => 1, 'mr' => \IPS\Request::i()->mr ) ) ) );
|
||||
@@ -378,11 +391,11 @@ class _Upgrade
|
||||
}
|
||||
|
||||
/**
|
||||
* Step 2
|
||||
* Step 3
|
||||
*
|
||||
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
|
||||
*/
|
||||
public function step2()
|
||||
public function step3()
|
||||
{
|
||||
if ( \IPS\Settings::i()->seo_index_md )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user