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 4.0.0 Upgrade Code
|
||||
* @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 Mar 2015
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
@@ -49,34 +49,11 @@ class _Upgrade
|
||||
|
||||
/**
|
||||
* Step 2
|
||||
* Rebuild search index
|
||||
*
|
||||
* @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()
|
||||
{
|
||||
\IPS\Content\Search\Index::i()->rebuild();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom title for this step
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function step2CustomTitle()
|
||||
{
|
||||
return "Building Search index";
|
||||
}
|
||||
|
||||
/**
|
||||
* Step 3
|
||||
* Clean up guest followers
|
||||
*
|
||||
* @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 step3()
|
||||
public function step2()
|
||||
{
|
||||
\IPS\Db::i()->delete( 'core_follow', array( 'follow_member_id=?', 0 ) );
|
||||
|
||||
@@ -88,18 +65,18 @@ class _Upgrade
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function step3CustomTitle()
|
||||
public function step2CustomTitle()
|
||||
{
|
||||
return "Clean up guest followers";
|
||||
}
|
||||
|
||||
/**
|
||||
* Step 4
|
||||
* Step 3
|
||||
* Fix broken attachments map
|
||||
*
|
||||
* @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 step4()
|
||||
public function step3()
|
||||
{
|
||||
if( \IPS\Db::i()->select( 'count(*)', 'core_attachments_map', "location_key=1" )->first() )
|
||||
{
|
||||
@@ -123,7 +100,7 @@ class _Upgrade
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function step4CustomTitle()
|
||||
public function step3CustomTitle()
|
||||
{
|
||||
return "Fixing broken attachment maps";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user