Drop MysqlUpdater::doWatchlistNull() and its related sql file

It was introduced in 1.6 which we don't support direct upgrade from
anymore. Also it has been removed from update.php list and it's not
mentioned anymore.

Bug: T272199
Change-Id: I8d9565fe035faf96033dc207515b8ec21bca9fe6
This commit is contained in:
Amir Sarabadani 2021-03-10 14:26:59 +01:00
parent ca982a4ddc
commit 335c06f7b6
2 changed files with 0 additions and 31 deletions

View file

@ -427,28 +427,6 @@ class MysqlUpdater extends DatabaseUpdater {
}
}
/**
* Make sure wl_notificationtimestamp can be NULL,
* and update old broken items.
*/
protected function doWatchlistNull() {
$info = $this->db->fieldInfo( 'watchlist', 'wl_notificationtimestamp' );
if ( !$info ) {
return;
}
if ( $info->isNullable() ) {
$this->output( "...wl_notificationtimestamp is already nullable.\n" );
return;
}
$this->applyPatch(
'patch-watchlist-null.sql',
false,
'Making wl_notificationtimestamp nullable'
);
}
/**
* Set page_random field to a random value where it is equals to 0.
*

View file

@ -1,9 +0,0 @@
-- Set up wl_notificationtimestamp with NULL support.
-- 2005-08-17
ALTER TABLE /*$wgDBprefix*/watchlist
CHANGE wl_notificationtimestamp wl_notificationtimestamp varbinary(14);
UPDATE /*$wgDBprefix*/watchlist
SET wl_notificationtimestamp=NULL
WHERE wl_notificationtimestamp='0';