com.atlassian.jira.upgrade.tasks
Class UpgradeTask_Build206

java.lang.Object
  extended by com.atlassian.jira.upgrade.AbstractUpgradeTask
      extended by com.atlassian.jira.upgrade.tasks.AbstractReindexUpgradeTask
          extended by com.atlassian.jira.upgrade.tasks.UpgradeTask_Build206
All Implemented Interfaces:
UpgradeTask

public class UpgradeTask_Build206
extends AbstractReindexUpgradeTask

Upgrade task to copy all the comments create date to updated date and authors to udpateAuthors.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.upgrade.UpgradeTask
UpgradeTask.Status
 
Constructor Summary
UpgradeTask_Build206(OfBizDelegator ofBizDelegator, ApplicationProperties applicationProperties, IssueIndexManager indexManager)
           
 
Method Summary
 void doUpgrade()
          Copies the values from author column over to updatedauthor column and values from created column over to updated column for all records in DefaultCommentManager.COMMENT_ENTITY table where type=comment.
 String getBuildNumber()
          Returns 206 as string
 String getShortDescription()
          Returns a short description of this upgrade task
 
Methods inherited from class com.atlassian.jira.upgrade.AbstractUpgradeTask
addError, addErrors, addErrors, getApplicationProperties, getDelegator, getErrors, getI18nBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeTask_Build206

public UpgradeTask_Build206(OfBizDelegator ofBizDelegator,
                            ApplicationProperties applicationProperties,
                            IssueIndexManager indexManager)
Method Detail

getShortDescription

public String getShortDescription()
Returns a short description of this upgrade task

Specified by:
getShortDescription in interface UpgradeTask
Overrides:
getShortDescription in class AbstractReindexUpgradeTask
Returns:
a short description string

getBuildNumber

public String getBuildNumber()
Returns 206 as string

Specified by:
getBuildNumber in interface UpgradeTask
Specified by:
getBuildNumber in class AbstractUpgradeTask
Returns:
206 as string

doUpgrade

public void doUpgrade()
               throws Exception
Copies the values from author column over to updatedauthor column and values from created column over to updated column for all records in DefaultCommentManager.COMMENT_ENTITY table where type=comment.

Specified by:
doUpgrade in interface UpgradeTask
Overrides:
doUpgrade in class AbstractReindexUpgradeTask
Throws:
Exception


Copyright © 2002-2007 Atlassian. All Rights Reserved.