$cl->execute();
$this->output( "Rebuilding localisation cache done.\n" );
}
-
- /**
- * Increases the length of the user_group field
- */
- protected function doIncreaseUserGroupLength() {
- $this->output( 'Increasing the length of the user_group...' );
- if ( $this->updateRowExists( 'user_groups_length' ) ) {
- $this->output( "...user_groups field is already long enough.\n" );
- return;
- }
- $this->applyPatch( 'patch-ug_group-length-increase.sql' );
- $this->insertUpdateRow( 'user_groups_length' );
- $this->output( "done.\n" );
- }
}
array( 'addField', 'revision', 'rev_sha1', 'patch-rev_sha1.sql' ),
array( 'addField', 'archive', 'ar_sha1', 'patch-ar_sha1.sql' ),
array( 'addIndex', 'page', 'page_redirect_namespace_len', 'patch-page_redirect_namespace_len.sql' ),
- array( 'doIncreaseUserGroupLength' ),
+ array( 'modifyField', 'user', 'ug_group', 'patch-ug_group-length-increase.sql' ),
);
}
array( 'addField', 'archive', 'ar_sha1', 'patch-ar_sha1_field.sql' ),
array( 'doRemoveNotNullEmptyDefaults2' ),
array( 'addIndex', 'page', 'i03', 'patch-page_redirect_namespace_len.sql' ),
- array( 'doIncreaseUserGroupLength' ),
+ array( 'modifyField', 'user', 'ug_group', 'patch-ug_group-length-increase.sql' ),
// till 2.0 i guess
array( 'doRebuildDuplicateFunction' ),
array( 'addField', 'revision', 'rev_sha1', 'patch-rev_sha1.sql' ),
array( 'addField', 'archive', 'ar_sha1', 'patch-ar_sha1.sql' ),
array( 'addIndex', 'page', 'page_redirect_namespace_len', 'patch-page_redirect_namespace_len.sql' ),
- array( 'doIncreaseUserGroupLength' ),
+ array( 'modifyField', 'user', 'ug_group', 'patch-ug_group-length-increase.sql' ),
);
}