From ed4577377fca0eb1c6eae742bf24b2356b2f2cfc Mon Sep 17 00:00:00 2001 From: Platonides Date: Thu, 12 Aug 2010 12:00:58 +0000 Subject: [PATCH] size and sha1 cannot be null in the database layout. Fixes sqlite parsertests after r70917 --- maintenance/parserTests.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 15c23f9fee..0d9a99ae5b 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -732,24 +732,28 @@ class ParserTest { $user = User::createNew( 'WikiSysop' ); $image = wfLocalFile( Title::makeTitle( NS_FILE, 'Foobar.jpg' ) ); $image->recordUpload2( '', 'Upload of some lame file', 'Some lame file', array( + 'size' => 12345, 'width' => 1941, 'height' => 220, 'bits' => 24, 'media_type' => MEDIATYPE_BITMAP, 'mime' => 'image/jpeg', 'metadata' => serialize( array() ), + 'sha1' => sha1(''), 'fileExists' => true ), $db->timestamp( '20010115123500' ), $user ); # This image will be blacklisted in [[MediaWiki:Bad image list]] $image = wfLocalFile( Title::makeTitle( NS_FILE, 'Bad.jpg' ) ); $image->recordUpload2( '', 'zomgnotcensored', 'Borderline image', array( + 'size' => 12345, 'width' => 320, 'height' => 240, 'bits' => 24, 'media_type' => MEDIATYPE_BITMAP, 'mime' => 'image/jpeg', 'metadata' => serialize( array() ), + 'sha1' => sha1(''), 'fileExists' => true ), $db->timestamp( '20010115123500' ), $user ); } -- 2.20.1