Version 4.3.0

This commit is contained in:
Neo committed 2025-12-19 05:47:12 -08:00
1 parent 96997ddd8e
commit fe1acf984a
1349 files changed
+116159 -67711

No files matched your search

+11 -4
View File
@@ -44,7 +44,7 @@ class _Upgrade
\IPS\Db::i()->delete( 'core_sys_settings_titles', "conf_title_keyword in ( 'ipbportal', 'portal_poll', 'portal_recent_topics', 'portal_blogs', 'newssetup', 'trashcansetup',
'cookies', 'ipbreg', 'twitterconnect' )" );
unset( \IPS\Data\Store::i()->settings );
\IPS\Settings::i()->clearCache();
\IPS\Db::i()->delete( 'core_applications', "app_directory='portal'" );
\IPS\Db::i()->delete( 'core_sys_module', "sys_module_application='portal'" );
@@ -65,7 +65,15 @@ class _Upgrade
/* We are using a raw query here to ensure the driver doesn't attempt to modify things or help us, like adjusting the table engine */
$toRun = \IPS\core\Setup\Upgrade::runManualQueries( array( array(
'table' => 'reputation_cache',
'query' => "CREATE TABLE " . \IPS\Db::i()->prefix . "reputation_cache2 (SELECT * FROM " . \IPS\Db::i()->prefix . "reputation_cache WHERE id > 0 GROUP BY app, type, type_id);"
'query' => "CREATE TABLE " . \IPS\Db::i()->prefix . "reputation_cache2 (SELECT * FROM " . \IPS\Db::i()->prefix . "reputation_cache WHERE 1=0);"
),
array(
'table' => 'reputation_cache',
'query' => "ALTER TABLE " . \IPS\Db::i()->prefix . "reputation_cache2 ADD UNIQUE INDEX app (app, type, type_id);"
),
array(
'table' => 'reputation_cache',
'query' => "REPLACE INTO " . \IPS\Db::i()->prefix . "reputation_cache2 (SELECT * FROM " . \IPS\Db::i()->prefix . "reputation_cache WHERE id > 0);"
),
array(
'table' => 'reputation_cache',
@@ -78,8 +86,7 @@ class _Upgrade
array(
'table' => 'reputation_cache',
'query' => "ALTER TABLE " . \IPS\Db::i()->prefix . "reputation_cache ADD PRIMARY KEY(id),
CHANGE COLUMN id id BIGINT(20) NOT NULL,
ADD UNIQUE INDEX app (app, type, type_id),
CHANGE COLUMN id id BIGINT(20) NOT NULL,
ADD COLUMN rep_like_cache MEDIUMTEXT NULL DEFAULT NULL,
CHANGE COLUMN rep_points rep_points INT(10) NOT NULL DEFAULT 0;"
) ) );