Version 4.1.19
This commit is contained in:
1 parent
28bd025b35
commit
2bd5025018
2674 files changed
+233518
-77766
No files matched your search
@@ -2,9 +2,9 @@
|
||||
/**
|
||||
* @brief Upgrade steps
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Social Suite
|
||||
* @package IPS Community Suite
|
||||
* @since 27 May 2014
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
@@ -30,47 +30,50 @@ class _Upgrade
|
||||
*/
|
||||
public function step1()
|
||||
{
|
||||
if( !\IPS\Db::i()->checkForColumn( 'message_topic_user_map', 'map_last_topic_reply' ) )
|
||||
if ( ! isset( \IPS\Request::i()->run_anyway ) )
|
||||
{
|
||||
\IPS\Db::i()->addColumn( 'message_topic_user_map', array(
|
||||
'name' => 'map_last_topic_reply',
|
||||
'type' => 'int',
|
||||
'length' => 10,
|
||||
if( !\IPS\Db::i()->checkForColumn( 'message_topic_user_map', 'map_last_topic_reply' ) )
|
||||
{
|
||||
\IPS\Db::i()->addColumn( 'message_topic_user_map', array(
|
||||
'name' => 'map_last_topic_reply',
|
||||
'type' => 'int',
|
||||
'length' => 10,
|
||||
'allow_null' => false,
|
||||
'default' => 0
|
||||
) );
|
||||
}
|
||||
|
||||
\IPS\Db::i()->changeColumn( 'core_sys_module', 'sys_module_version', array(
|
||||
'name' => 'sys_module_version',
|
||||
'type' => 'varchar',
|
||||
'length' => 32,
|
||||
'allow_null' => false
|
||||
) );
|
||||
|
||||
\IPS\Db::i()->changeColumn( 'core_sys_lang_words', 'word_js', array(
|
||||
'name' => 'word_js',
|
||||
'type' => 'tinyint',
|
||||
'length' => 1,
|
||||
'unsigned' => true,
|
||||
'allow_null' => false,
|
||||
'default' => 0
|
||||
) );
|
||||
|
||||
\IPS\Db::i()->query( "UPDATE " . \IPS\Db::i()->prefix . "core_sys_conf_settings SET conf_value=conf_default WHERE conf_key='links_external' AND conf_value=''" );
|
||||
|
||||
\IPS\Db::i()->delete( "core_sys_conf_settings", array( 'conf_key=?', 'spider_suit' ) );
|
||||
\IPS\Db::i()->delete( "core_sys_conf_settings", array( 'conf_key=?', 'c_cache_days' ) );
|
||||
|
||||
unset( \IPS\Data\Store::i()->settings );
|
||||
|
||||
\IPS\Db::i()->changeColumn( 'forums', 'permission_array', array(
|
||||
'name' => 'permission_array',
|
||||
'type' => 'mediumtext',
|
||||
'allow_null' => true,
|
||||
'default' => null
|
||||
) );
|
||||
}
|
||||
|
||||
\IPS\Db::i()->changeColumn( 'core_sys_module', 'sys_module_version', array(
|
||||
'name' => 'sys_module_version',
|
||||
'type' => 'varchar',
|
||||
'length' => 32,
|
||||
'allow_null' => false
|
||||
) );
|
||||
|
||||
\IPS\Db::i()->changeColumn( 'core_sys_lang_words', 'word_js', array(
|
||||
'name' => 'word_js',
|
||||
'type' => 'tinyint',
|
||||
'length' => 1,
|
||||
'unsigned' => true,
|
||||
'allow_null' => false,
|
||||
'default' => 0
|
||||
) );
|
||||
|
||||
\IPS\Db::i()->query( "UPDATE " . \IPS\Db::i()->prefix . "core_sys_conf_settings SET conf_value=conf_default WHERE conf_key='links_external' AND conf_value=''" );
|
||||
|
||||
\IPS\Db::i()->delete( "core_sys_conf_settings", array( 'conf_key=?', 'spider_suit' ) );
|
||||
\IPS\Db::i()->delete( "core_sys_conf_settings", array( 'conf_key=?', 'c_cache_days' ) );
|
||||
|
||||
unset( \IPS\Data\Store::i()->settings );
|
||||
|
||||
\IPS\Db::i()->changeColumn( 'forums', 'permission_array', array(
|
||||
'name' => 'permission_array',
|
||||
'type' => 'mediumtext',
|
||||
'allow_null' => true,
|
||||
'default' => null
|
||||
) );
|
||||
|
||||
|
||||
$toRun = \IPS\core\Setup\Upgrade::runManualQueries( array( array(
|
||||
'table' => 'topics',
|
||||
'query' => "ALTER TABLE " . \IPS\Db::i()->prefix . "topics ADD INDEX start_date (start_date);"
|
||||
@@ -82,10 +85,10 @@ class _Upgrade
|
||||
|
||||
if ( count( $toRun ) )
|
||||
{
|
||||
$mr = \IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'core', 'extra' => array( '_upgradeStep' => 2 ) ) );
|
||||
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'core', 'extra' => array( '_upgradeStep' => 2 ) ) );
|
||||
|
||||
/* 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' => $mr ) ) ) );
|
||||
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 ) ) ) );
|
||||
}
|
||||
|
||||
/* @note We previously updated a media tag bbcode here, but it's no longer relevant in the latest release so there is no point in doing so */
|
||||
|
||||
Reference in new issue
Block a user