public class

UpgradeTask_Build6039

extends AbstractUpgradeTask
java.lang.Object
   ↳ com.atlassian.jira.upgrade.AbstractUpgradeTask
     ↳ com.atlassian.jira.upgrade.tasks.UpgradeTask_Build6039
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Upgrade task to convert username fields to lowercase. This is required as part of the preparation for rename user to work.

Summary

Public Constructors
UpgradeTask_Build6039(EntityEngine entityEngine)
Public Methods
void doUpgrade(boolean setupMode)
Perform the upgrade.
String getBuildNumber()
String getShortDescription()
boolean isReindexRequired()
Is a reindex required as a result of running this task.
Protected Methods
void doUserProjectRoleActorUpgrade()
void doWorklogUpgrade()
Map<StringString> toUsernameMap(SelectQuery<String> selectQuery)
[Expand]
Inherited Methods
From class com.atlassian.jira.upgrade.AbstractUpgradeTask
From class java.lang.Object
From interface com.atlassian.jira.upgrade.UpgradeTask

Public Constructors

public UpgradeTask_Build6039 (EntityEngine entityEngine)

Public Methods

public void doUpgrade (boolean setupMode)

Perform the upgrade.

Parameters
setupMode Indicating this upgrade task is running during set up.
Throws
Exception

public String getBuildNumber ()

public String getShortDescription ()

public boolean isReindexRequired ()

Is a reindex required as a result of running this task. If this method returns true the Upgrade manager will perform a reindex before completing. If an upgrade task changes data that is indexed by Lucene, e.g. the content of Issue fields then it should return true. A task need not necessarily change data to require a reindex but may return true here and do nothing else if there is a functional change to the code that requires the Lucene index to be rebuilt.

Returns
  • true if a reindex is required as a result of running this task.

Protected Methods

protected void doUserProjectRoleActorUpgrade ()

Throws
SQLException

protected void doWorklogUpgrade ()

Throws
SQLException

protected Map<StringString> toUsernameMap (SelectQuery<String> selectQuery)