Version 4.7.8
This commit is contained in:
1 parent
7b7404e741
commit
fd22d99e69
688 files changed
+19814
-10890
No files matched your search
@@ -24,36 +24,12 @@ if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
class _Upgrade
|
||||
{
|
||||
/**
|
||||
* ...
|
||||
*
|
||||
* @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 step1()
|
||||
{
|
||||
foreach( \IPS\cms\Databases::databases() as $id => $db )
|
||||
{
|
||||
try
|
||||
{
|
||||
\IPS\cms\Databases::checkandFixDatabaseSchema( $id );
|
||||
}
|
||||
catch( \Exception $e ) { }
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
public function step1CustomTitle()
|
||||
{
|
||||
return 'Fixing CMS Tables';
|
||||
}
|
||||
|
||||
/**
|
||||
* Step 2
|
||||
* Step 1
|
||||
* Initialize a search index rebuild for Pages
|
||||
*
|
||||
* @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 step1()
|
||||
{
|
||||
\IPS\Task::queue( 'core', 'RebuildSearchIndex', array( 'class' => 'IPS\cms\Pages\PageItem' ), 5 );
|
||||
|
||||
@@ -65,7 +41,7 @@ class _Upgrade
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function step2CustomTitle()
|
||||
public function step1CustomTitle()
|
||||
{
|
||||
return 'Rebuilding pages search index';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user