Version 4.1.19

This commit is contained in:
Neo committed 2025-12-19 05:38:56 -08:00
1 parent 28bd025b35
commit 2bd5025018
2674 files changed
+233518 -77766

No files matched your search

+221 -198
View File
@@ -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 5 Jun 2014
* @version SVN_VERSION_NUMBER
*/
@@ -36,88 +36,100 @@ class _Upgrade
\IPS\Db::i()->delete( 'core_sys_settings_titles', "conf_title_keyword='ipconverge'" );
\IPS\Db::i()->delete( 'login_methods', "login_folder_name='ipconverge'" );
\IPS\Db::i()->addColumn( 'mail_queue', array(
'name' => 'mail_html_content',
'type' => 'mediumtext',
'allow_null' => true,
'default' => null
) );
if( !\IPS\Db::i()->checkForColumn( 'mail_queue', 'mail_html_content' ) )
{
\IPS\Db::i()->addColumn( 'mail_queue', array(
'name' => 'mail_html_content',
'type' => 'mediumtext',
'allow_null' => true,
'default' => null
) );
}
\IPS\Db::i()->addColumn( 'forums', array(
'name' => 'viglink',
'type' => 'tinyint',
'length' => 1,
'allow_null' => false,
'default' => 1
) );
if( !\IPS\Db::i()->checkForColumn( 'forums', 'viglink' ) )
{
\IPS\Db::i()->addColumn( 'forums', array(
'name' => 'viglink',
'type' => 'tinyint',
'length' => 1,
'allow_null' => false,
'default' => 1
) );
}
\IPS\Db::i()->update( 'custom_bbcode', array( 'bbcode_replace' => '', 'bbcode_php_plugin' => 'defaults.php' ), "bbcode_tag='code'" );
\IPS\Db::i()->addColumn( 'core_sys_login', array(
'name' => 'sys_bookmarks',
'type' => 'mediumtext',
'allow_null' => true,
'default' => null
) );
if( !\IPS\Db::i()->checkForColumn( 'core_sys_login', 'sys_bookmarks' ) )
{
\IPS\Db::i()->addColumn( 'core_sys_login', array(
'name' => 'sys_bookmarks',
'type' => 'mediumtext',
'allow_null' => true,
'default' => null
) );
}
\IPS\Db::i()->createTable( array(
'name' => 'core_sys_bookmarks',
'columns' => array(
array(
'name' => 'bookmark_id',
'type' => 'int',
'length' => 10,
'allow_null' => false,
'auto_increment' => true
if( !\IPS\Db::i()->checkForTable( 'core_sys_bookmarks' ) )
{
\IPS\Db::i()->createTable( array(
'name' => 'core_sys_bookmarks',
'columns' => array(
array(
'name' => 'bookmark_id',
'type' => 'int',
'length' => 10,
'allow_null' => false,
'auto_increment' => true
),
array(
'name' => 'bookmark_member_id',
'type' => 'int',
'length' => 10,
'allow_null' => false,
'default' => 0
),
array(
'name' => 'bookmark_title',
'type' => 'varchar',
'length' => 255,
'allow_null' => false,
'default' => ''
),
array(
'name' => 'bookmark_url',
'type' => 'varchar',
'length' => 255,
'allow_null' => false,
'default' => ''
),
array(
'name' => 'bookmark_home',
'type' => 'int',
'length' => 1,
'allow_null' => false,
'default' => 0
),
array(
'name' => 'bookmark_pos',
'type' => 'int',
'length' => 5,
'allow_null' => false,
'default' => 0
),
),
array(
'name' => 'bookmark_member_id',
'type' => 'int',
'length' => 10,
'allow_null' => false,
'default' => 0
),
array(
'name' => 'bookmark_title',
'type' => 'varchar',
'length' => 255,
'allow_null' => false,
'default' => ''
),
array(
'name' => 'bookmark_url',
'type' => 'varchar',
'length' => 255,
'allow_null' => false,
'default' => ''
),
array(
'name' => 'bookmark_home',
'type' => 'int',
'length' => 1,
'allow_null' => false,
'default' => 0
),
array(
'name' => 'bookmark_pos',
'type' => 'int',
'length' => 5,
'allow_null' => false,
'default' => 0
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array( 'bookmark_id' )
),
array(
'type' => 'key',
'name' => 'bookmark_member_id',
'columns' => array( 'bookmark_member_id' )
),
)
) );
'indexes' => array(
array(
'type' => 'primary',
'columns' => array( 'bookmark_id' )
),
array(
'type' => 'key',
'name' => 'bookmark_member_id',
'columns' => array( 'bookmark_member_id' )
),
)
) );
}
\IPS\Db::i()->delete( 'core_uagents', "uagent_key='mob_saf'" );
\IPS\Db::i()->delete( 'bbcode_mediatag', "mediatag_name='GameTrailers'" );
@@ -125,128 +137,138 @@ class _Upgrade
\IPS\Db::i()->dropColumn( 'forums', 'rules_raw_html' );
\IPS\Db::i()->dropTable( 'core_share_links_caches' );
\IPS\Db::i()->createTable( array(
'name' => 'backup_vars',
'columns' => array(
array(
'name' => 'backup_var_key',
'type' => 'varchar',
'length' => 255,
'allow_null' => false,
'default' => ''
if( !\IPS\Db::i()->checkForTable( 'backup_vars' ) )
{
\IPS\Db::i()->createTable( array(
'name' => 'backup_vars',
'columns' => array(
array(
'name' => 'backup_var_key',
'type' => 'varchar',
'length' => 255,
'allow_null' => false,
'default' => ''
),
array(
'name' => 'backup_var_value',
'type' => 'text',
'allow_null' => true,
'default' => null
),
),
array(
'name' => 'backup_var_value',
'type' => 'text',
'allow_null' => true,
'default' => null
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array( 'backup_var_key' ),
'length' => array( 190 )
),
)
) );
'indexes' => array(
array(
'type' => 'primary',
'columns' => array( 'backup_var_key' ),
'length' => array( 190 )
),
)
) );
}
\IPS\Db::i()->createTable( array(
'name' => 'backup_log',
'columns' => array(
array(
'name' => 'log_id',
'type' => 'bigint',
'length' => 20,
'allow_null' => false,
'auto_increment' => true
if( !\IPS\Db::i()->checkForTable( 'backup_log' ) )
{
\IPS\Db::i()->createTable( array(
'name' => 'backup_log',
'columns' => array(
array(
'name' => 'log_id',
'type' => 'bigint',
'length' => 20,
'allow_null' => false,
'auto_increment' => true
),
array(
'name' => 'log_row_count',
'type' => 'int',
'length' => 10,
'allow_null' => false,
'default' => 0
),
array(
'name' => 'log_result',
'type' => 'text',
'allow_null' => true,
'default' => null
),
),
array(
'name' => 'log_row_count',
'type' => 'int',
'length' => 10,
'allow_null' => false,
'default' => 0
),
array(
'name' => 'log_result',
'type' => 'text',
'allow_null' => true,
'default' => null
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array( 'log_id' )
),
)
) );
'indexes' => array(
array(
'type' => 'primary',
'columns' => array( 'log_id' )
),
)
) );
}
\IPS\Db::i()->createTable( array(
'name' => 'backup_queue',
'columns' => array(
array(
'name' => 'queue_id',
'type' => 'bigint',
'length' => 20,
'allow_null' => false,
'auto_increment' => true
if( !\IPS\Db::i()->checkForTable( 'backup_queue' ) )
{
\IPS\Db::i()->createTable( array(
'name' => 'backup_queue',
'columns' => array(
array(
'name' => 'queue_id',
'type' => 'bigint',
'length' => 20,
'allow_null' => false,
'auto_increment' => true
),
array(
'name' => 'queue_entry_date',
'type' => 'int',
'length' => 10,
'allow_null' => false,
'default' => 0
),
array(
'name' => 'queue_entry_type',
'type' => 'int',
'length' => 1,
'allow_null' => false,
'default' => 0
),
array(
'name' => 'queue_entry_table',
'type' => 'varchar',
'length' => 255,
'allow_null' => false,
'default' => ''
),
array(
'name' => 'queue_entry_key',
'type' => 'varchar',
'length' => 255,
'allow_null' => false,
'default' => ''
),
array(
'name' => 'queue_entry_value',
'type' => 'varchar',
'length' => 255,
'allow_null' => false,
'default' => ''
),
array(
'name' => 'queue_entry_sql',
'type' => 'mediumtext',
'allow_null' => true,
'default' => null
),
),
array(
'name' => 'queue_entry_date',
'type' => 'int',
'length' => 10,
'allow_null' => false,
'default' => 0
),
array(
'name' => 'queue_entry_type',
'type' => 'int',
'length' => 1,
'allow_null' => false,
'default' => 0
),
array(
'name' => 'queue_entry_table',
'type' => 'varchar',
'length' => 255,
'allow_null' => false,
'default' => ''
),
array(
'name' => 'queue_entry_key',
'type' => 'varchar',
'length' => 255,
'allow_null' => false,
'default' => ''
),
array(
'name' => 'queue_entry_value',
'type' => 'varchar',
'length' => 255,
'allow_null' => false,
'default' => ''
),
array(
'name' => 'queue_entry_sql',
'type' => 'mediumtext',
'allow_null' => true,
'default' => null
),
),
'indexes' => array(
array(
'type' => 'primary',
'columns' => array( 'queue_id' )
),
array(
'type' => 'key',
'name' => 'date',
'columns' => array( 'queue_entry_date' )
),
)
) );
'indexes' => array(
array(
'type' => 'primary',
'columns' => array( 'queue_id' )
),
array(
'type' => 'key',
'name' => 'date',
'columns' => array( 'queue_entry_date' )
),
)
) );
}
if( !\IPS\Db::i()->checkForTable('seo_meta') )
{
@@ -327,7 +349,8 @@ class _Upgrade
array(
'type' => 'key',
'name' => 'a_short',
'columns' => array( 'a_short' )
'columns' => array( 'a_short' ),
'length' => array( 191 )
),
)
) );
@@ -344,10 +367,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 ) ) ) );
}
/* Finish */