X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FSqliteUpdater.php;h=1d6bca0a7ae9ecd9a8bc0663452b5126c55de2d5;hb=fef58f99af90f7b2dfbf814f26acd83a1e572c21;hp=2fa3f31c76a22c2b461ddedebb672eb015517d1f;hpb=16b89ab3e74da48c4fd8bd5607775248af5da0aa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/SqliteUpdater.php b/includes/installer/SqliteUpdater.php index 2fa3f31c76..1d6bca0a7a 100644 --- a/includes/installer/SqliteUpdater.php +++ b/includes/installer/SqliteUpdater.php @@ -105,6 +105,9 @@ class SqliteUpdater extends DatabaseUpdater { array( 'addTable', 'sites', 'patch-sites.sql' ), array( 'addField', 'filearchive', 'fa_sha1', 'patch-fa_sha1.sql' ), array( 'addField', 'job', 'job_token', 'patch-job_token.sql' ), + array( 'addField', 'job', 'job_attempts', 'patch-job_attempts.sql' ), + array( 'doEnableProfiling' ), + array( 'addField', 'uploadstash', 'us_props', 'patch-uploadstash-us_props.sql' ), ); } @@ -128,4 +131,11 @@ class SqliteUpdater extends DatabaseUpdater { $this->output( "...fulltext search table appears to be in order.\n" ); } } + + protected function doEnableProfiling() { + global $wgProfileToDatabase; + if ( $wgProfileToDatabase === true && ! $this->db->tableExists( 'profiling', __METHOD__ ) ) { + $this->applyPatch( 'patch-profiling.sql', false, 'Add profiling table' ); + } + } }