X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FPostgresUpdater.php;h=a6d7cb24ab49c6a9e1039950bbe2711dcae5d5c5;hb=bd2a78a159ce6d9f7b27fd75d05570228b44c3cb;hp=7841fca993e2fa85ad111f563d18e24f9b9e279c;hpb=adbadb9ee62284d70d9e7763379ab3b4eb6bde6f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/PostgresUpdater.php b/includes/installer/PostgresUpdater.php index 7841fca993..a6d7cb24ab 100644 --- a/includes/installer/PostgresUpdater.php +++ b/includes/installer/PostgresUpdater.php @@ -27,7 +27,6 @@ * @ingroup Deployment * @since 1.17 */ - class PostgresUpdater extends DatabaseUpdater { /** @@ -235,6 +234,7 @@ class PostgresUpdater extends DatabaseUpdater { array( 'changeNullableField', 'image', 'img_metadata', 'NOT NULL' ), array( 'changeNullableField', 'filearchive', 'fa_metadata', 'NOT NULL' ), array( 'changeNullableField', 'recentchanges', 'rc_cur_id', 'NULL' ), + array( 'changeNullableField', 'recentchanges', 'rc_cur_time', 'NULL' ), array( 'checkOiDeleted' ), @@ -405,6 +405,10 @@ class PostgresUpdater extends DatabaseUpdater { // 1.23 array( 'addPgField', 'recentchanges', 'rc_source', "TEXT NOT NULL DEFAULT ''" ), array( 'addPgField', 'page', 'page_links_updated', "TIMESTAMPTZ NULL" ), + array( 'addPgField', 'mwuser', 'user_password_expires', 'TIMESTAMPTZ NULL' ), + array( 'addPgField', 'page_props', 'pp_sortkey', 'float NULL' ), + array( 'addPgIndex', 'page_props', 'pp_propname_sortkey_page', + '( pp_propname, pp_sortkey, pp_page ) WHERE ( pp_sortkey NOT NULL )' ), ); }