X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=blobdiff_plain;f=maintenance%2FconvertLinks.php;h=26f81821da36f3668172a5bc0654008dbfb982bd;hb=df59a5cbabea50191168303c5f0ea3600aab49b4;hp=02152f7b6615f291268d30e6e2384ee48f0a11fe;hpb=529fc12d2ad2032337594389448fdb5b55802830;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/convertLinks.php b/maintenance/convertLinks.php index 02152f7b66..26f81821da 100644 --- a/maintenance/convertLinks.php +++ b/maintenance/convertLinks.php @@ -100,10 +100,10 @@ class ConvertLinks extends Maintenance { # not used yet; highest row number from links table to process # $finalRowOffset = 0; + $this->logPerformance = $this->hasOption( 'logperformance' ); + $perfLogFilename = $this->getArg( 1, "convLinksPerf.txt" ); $overwriteLinksTable = !$this->hasOption( 'keep-links-table' ); $noKeys = $this->hasOption( 'noKeys' ); - $this->logPerformance = $this->hasOption( 'logperformance' ); - $perfLogFilename = $this->getArg( 'perfLogFilename', "convLinksPerf.txt" ); # -------------------------------------------------------------------- @@ -117,6 +117,7 @@ class ConvertLinks extends Maintenance { } $res = $dbw->query( "SELECT l_from FROM $links LIMIT 1" ); + // @phan-suppress-next-line PhanUndeclaredMethod if ( $dbw->fieldType( $res, 0 ) == "int" ) { $this->output( "Schema already converted\n" );