From 7f1a07877be040e7671590e1f62f354a5327775f Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 16 Mar 2013 14:19:41 +0000 Subject: [PATCH] Check for rev_len not rev_sha1 Change-Id: Ida29357d1277ec1ddeada2aaca2d1b889ba742a8 --- maintenance/populateRevisionLength.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/populateRevisionLength.php b/maintenance/populateRevisionLength.php index 7c529d53d8..1572869978 100644 --- a/maintenance/populateRevisionLength.php +++ b/maintenance/populateRevisionLength.php @@ -48,8 +48,8 @@ class PopulateRevisionLength extends LoggedUpdateMaintenance { $db = $this->getDB( DB_MASTER ); if ( !$db->tableExists( 'revision' ) ) { $this->error( "revision table does not exist", true ); - } else if ( !$db->fieldExists( 'revision', 'rev_sha1', __METHOD__ ) ) { - $this->output( "rev_sha1 column does not exist\n\n", true ); + } else if ( !$db->fieldExists( 'revision', 'rev_len', __METHOD__ ) ) { + $this->output( "rev_len column does not exist\n\n", true ); return false; } -- 2.20.1